/* Yardak: Partnora colours only (brand guide v1.2): navy #18276B, turquoise #00BFB4, white, the turquoise-to-navy
   gradient, and the supporting shades #E0F7F6 #99E5E1 #4DD2CA #D1D4E1 #8B93B5 #46528A. Arabic first. */
:root {
  --navy: #18276B; --turq: #00BFB4; --teal: #00BFB4; --teal-mid: #46528A; --ink: #18276B;
  --bg: #F2F5FA; --surface: #FFFFFF; --surface2: #EAF1FA; --fg: #18276B; --muted: #46528A; --line: #D1D4E1;
  --brand: #18276B; --link: #18276B; --accent-soft: #E0F7F6; --header: rgba(255,255,255,.95);
  --good: #166534; --good-soft: rgba(21,128,61,.12); --warn: #92400E; --warn-soft: #FEF3C7;
  --bad: #B42318; --bad-soft: #FEE4E2; --info-soft: rgba(3,105,161,.10);
  --shadow: 0 10px 30px -12px rgba(24,39,107,.25);
  --shadow-lg: 0 18px 44px -14px rgba(24,39,107,.35);
  --hero: linear-gradient(225deg, #00BFB4 0%, #18276B 100%);
  --side: linear-gradient(225deg, #00BFB4 0%, #18276B 100%);
  --tile: linear-gradient(225deg, #00BFB4, #18276B);
  --font: "Tajawal", "Outfit", system-ui, sans-serif;
  --r: 12px; --r-btn: 14px;
  color-scheme: light;
}
html.dark {
  --bg: #0B1433; --surface: #111C45; --surface2: #17245A; --fg: #EAF1FA; --muted: #A9B6D3; --line: #26376A;
  --brand: #99E5E1; --link: #4DD2CA; --accent-soft: #0F3A4A; --header: rgba(17,28,69,.95);
  --good: #4ADE80; --good-soft: rgba(74,222,128,.12); --warn: #FBBF24; --warn-soft: rgba(251,191,36,.12);
  --bad: #F87171; --bad-soft: rgba(248,113,113,.12); --info-soft: rgba(56,189,248,.10);
  --shadow: 0 10px 30px -12px rgba(0,0,0,.5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 16px/1.8 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
html[lang="en"] { --font: "Outfit", "Tajawal", system-ui, sans-serif; }
html[lang="en"] body { line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.35; margin: 0; text-wrap: balance; }
h1 { font-weight: 800; } h2 { font-weight: 700; font-size: clamp(24px, 3vw, 32px); } h3 { font-weight: 700; font-size: 18px; }
a { color: var(--link); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
main.wrap { flex: 1; padding-block: 28px 64px; }
main.full { max-width: none; padding: 0; }
[hidden] { display: none !important; }

/* ---- header ---- */
.top { background: var(--header); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.bar { display: flex; align-items: center; gap: 18px; min-height: 68px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; }
.logo b { font-size: 23px; font-weight: 800; line-height: 1; display: block; }
.logo small { font-size: 11px; color: var(--muted); display: block; }
#nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
#nav a { color: var(--fg); text-decoration: none; padding: 6px 10px; white-space: nowrap; border-radius: 10px; font-size: 14.5px; font-weight: 500; }
#nav a[aria-current="page"] { color: var(--link); font-weight: 700; }
#nav a:hover { background: var(--surface2); }
.bar-end { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill { border: 1px solid var(--muted); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.login-link { color: var(--fg); text-decoration: none; font-size: 14px; font-weight: 500; padding: 0 8px; background: none; border: 0; cursor: pointer; }
.cta { background: var(--navy); color: #fff !important; border-radius: var(--r-btn); padding: 9px 16px; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); border: 0; cursor: pointer; }
.sim { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: 13px; padding: 6px 16px; }

/* ---- buttons, chips, alerts ---- */
.btn { border: 0; border-radius: var(--r); padding: 11px 18px; cursor: pointer; font-weight: 700; background: var(--navy); color: #fff; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; justify-content: center; line-height: 1.4; }
.btn.turq, .btn.primary { background: var(--teal); color: var(--ink); }
.btn.light { background: #fff; color: var(--navy); border-radius: var(--r-btn); box-shadow: var(--shadow-lg); font-size: 17px; padding: 13px 26px; }
.btn.outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.85); border-radius: var(--r-btn); font-size: 17px; padding: 12px 24px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--fg); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: 13.5px; }
.btn.block { width: 100%; min-height: 48px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.chip { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: var(--surface2); color: var(--muted); font-weight: 500; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.acc { background: var(--accent-soft); color: var(--link); }
.alert { border-radius: var(--r); padding: 10px 14px; font-size: 14px; }
.alert.good { background: var(--good-soft); color: var(--good); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.info { background: var(--info-soft); color: var(--fg); }
.empty { text-align: center; color: var(--muted); padding: 32px 16px; }

/* ---- layout ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 20px; }
.stack { display: grid; gap: 14px; align-content: start; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.grid2 > *, .cols > * { min-width: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.lbl { font-size: 13px; color: var(--muted); }
.h-sec { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.h-sec p { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }
.tile { width: 44px; height: 44px; border-radius: 12px; background: var(--tile); color: #fff; display: grid; place-items: center; flex: none; }
.tile svg { width: 22px; height: 22px; }
.ic { width: 18px; height: 18px; flex: none; }

/* ---- forms ---- */
.field { display: grid; gap: 4px; }
.field > span { font-size: 14px; color: var(--fg); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border-radius: var(--r); border: 1px solid var(--muted); background: var(--surface); min-width: 0; }
.field textarea { min-height: 90px; resize: vertical; }
.field small { color: var(--muted); font-size: 12.5px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0; display: grid; gap: 12px; background: var(--surface); }
legend { font-weight: 700; padding: 0 6px; }
.check { display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; background: var(--surface2); border-radius: var(--r); padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 10px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* ---- hero (market) ---- */
.hero { background: var(--hero); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; padding-block: 48px 56px; }
.hero .badge { display: inline-block; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 4px 14px; font-size: 13px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.2; }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.92); margin: 14px 0 22px; max-width: 46ch; }
.search { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px; background: rgba(255,255,255,.14); padding: 8px; border-radius: var(--r-btn); }
.search input, .search select { padding: 11px 12px; border-radius: 10px; border: 0; background: #fff; color: var(--ink); min-width: 0; }
.reco { color: var(--fg); }
.reco > summary { list-style: none; cursor: pointer; }
.reco > summary::-webkit-details-marker { display: none; }
.reco > summary h3 { flex: 1; }
.reco > summary::after { content: "+"; font-size: 22px; font-weight: 700; color: var(--turq); }
.reco[open] > summary::after { content: "−"; }
.reco-out { background: var(--surface2); border-radius: var(--r); padding: 12px; font-size: 14px; display: grid; gap: 8px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.filters select { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; }
.section { padding-block: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.item { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.thumb { position: relative; aspect-ratio: 16/10; background: linear-gradient(160deg, var(--surface2), var(--accent-soft)); display: grid; place-items: center; overflow: hidden; }
.thumb svg { width: auto; height: 46%; color: var(--navy); }
html.dark .thumb svg { color: #99E5E1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.score { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; align-items: center; gap: 6px; background: var(--surface); border-radius: 999px; padding: 3px 10px 3px 4px; font-size: 12.5px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.ring { --v: 0; --c: var(--turq); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 3.6deg), var(--surface2) 0); }
.ring > span { width: 23px; height: 23px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.ring.big { width: 86px; height: 86px; flex: none; }
.ring.big > span { width: 68px; height: 68px; font-size: 22px; }
.item .body { padding: 16px; display: grid; gap: 8px; flex: 1; }
.item h3 { font-size: 17px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.price { display: flex; justify-content: space-between; align-items: end; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; }
.price b { font-size: 19px; font-weight: 800; color: var(--brand); }

/* feature cards (how it works) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature { padding: 20px; display: grid; gap: 10px; align-content: start; }
.feature ul { margin: 0; padding-inline-start: 18px; color: var(--muted); font-size: 14.5px; }
.feature li { margin-bottom: 4px; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--link); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* contact band and footer */
.contact { background: var(--side); color: #fff; }
.contact .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 28px; }
.contact h3 { font-size: 20px; }
.contact p { margin: 2px 0 0; color: rgba(255,255,255,.85); }
.contact .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.contact a { background: #fff; color: var(--navy); border-radius: var(--r-btn); padding: 10px 18px; text-decoration: none; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.contact a.wa { background: var(--teal); color: var(--ink); }
.foot { background: #0B1433; color: #EAF1FA; }
.foot .cols3 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; padding-block: 32px 20px; }
.foot p { color: rgba(234,241,250,.8); max-width: 52ch; font-size: 14.5px; }
.foot h4 { font-size: 15px; margin-bottom: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: rgba(234,241,250,.85); text-decoration: none; font-size: 14px; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .family { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(234,241,250,.75); margin-top: 10px; }
.foot .family img { height: 64px; width: auto; margin-block: -14px; } /* the file has wide transparent margins */
.foot .legal { border-top: 1px solid rgba(234,241,250,.15); padding-block: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: rgba(234,241,250,.7); }

/* ---- auth split layout ---- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 69px); }
.auth-side { background: var(--side); color: #fff; padding: 48px max(24px, 6vw); display: grid; align-content: center; gap: 18px; }
.auth-side h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.auth-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-side li { display: flex; gap: 10px; align-items: center; }
.auth-side li svg { color: var(--turq); }
.auth-side .cobrand { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.75); }
.auth-side .cobrand img { height: 72px; width: auto; margin-block: -16px; }
.auth-side .cobrand span.sep { width: 1px; height: 28px; background: rgba(255,255,255,.4); }
.auth-main { display: grid; place-items: center; padding: 32px 16px; }
.auth-main .card { width: 100%; max-width: 440px; }
.auth-main h1 { font-size: 26px; }

/* ---- detail ---- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gallery a { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface2); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .tag { position: absolute; bottom: 0; inset-inline: 0; background: rgba(11,20,51,.65); color: #fff; font-size: 11px; padding: 2px; text-align: center; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 34px; gap: 8px; align-items: center; font-size: 14px; }
.bar-row i { display: block; height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.bar-row i em { display: block; height: 100%; border-radius: 99px; }
.bar-row small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; margin-top: -6px; }
table.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
table.kv td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
table.kv td:first-child { color: var(--muted); width: 45%; }
.sum { display: grid; gap: 4px; font-size: 14.5px; }
.sum div { display: flex; justify-content: space-between; gap: 8px; }
.sum .tot { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 800; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.price-big { font-size: 22px; font-weight: 800; color: var(--brand); }
.back { font-size: 14px; text-decoration: none; }

/* ---- tables & dashboards ---- */
.tbl-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
table.list th { text-align: start; font-size: 13px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--line); }
table.list td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpis .card { padding: 16px; display: flex; gap: 12px; align-items: center; }
.kpis b { display: block; font-size: 22px; font-weight: 800; color: var(--brand); line-height: 1.3; }

/* ---- photo slots ---- */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.slot { border: 2px dashed var(--line); border-radius: var(--r); aspect-ratio: 4/3; display: grid; place-items: center; position: relative; overflow: hidden; cursor: pointer; text-align: center; font-size: 13.5px; color: var(--muted); background: var(--surface); }
.slot.done { border-style: solid; border-color: var(--good); }
.slot.weak { border-style: solid; border-color: var(--warn); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .cap { position: absolute; bottom: 0; inset-inline: 0; background: rgba(11,20,51,.75); color: #fff; font-size: 12px; padding: 3px 4px; }
.slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---- timeline ---- */
.timeline { display: grid; }
.tl { display: grid; grid-template-columns: 28px 1fr; gap: 10px; position: relative; padding-bottom: 14px; }
.tl::before { content: ""; position: absolute; inset-inline-start: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl i { width: 28px; height: 28px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-size: 12px; color: #fff; font-style: normal; font-weight: 700; }
.tl.done i { background: var(--good); }
.tl.now i { background: var(--teal); color: var(--ink); }
.tl b { display: block; font-size: 14.5px; }

#toast { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline: 16px; margin: 0 auto; max-width: 480px; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: var(--r); z-index: 50; box-shadow: var(--shadow-lg); text-align: center; }
#toast.error { background: var(--bad); }

@media (max-width: 900px) {
  .hero .wrap, .grid2, .auth, .foot .cols3 { grid-template-columns: 1fr; }
  .auth-side { padding-block: 28px; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .btn { grid-column: 1 / -1; }
  .hero .wrap { padding-block: 24px 28px; gap: 16px; }
  .hero p.lead { font-size: 16px; margin: 10px 0 16px; }
  #nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
}
@media (max-width: 480px) {
  .bar-row { grid-template-columns: 100px 1fr 30px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- Notifications, chat, documents, reports ---- */
.bell { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--fg); }
.bell:hover { background: var(--surface2); }
.bell .ic { width: 20px; height: 20px; }
.bell span { position: absolute; top: 0; inset-inline-end: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.note { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--fg); text-decoration: none; }
.note:hover { background: var(--surface2); }
.note.unread { border-inline-start: 4px solid var(--turq); background: var(--surface2); }
.note small { white-space: nowrap; }
.chat { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; padding: 4px; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 12px; background: var(--surface2); justify-self: start; overflow-wrap: anywhere; }
.msg.mine { background: var(--accent-soft, var(--surface2)); justify-self: end; }
.msg small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.chat-form { margin-top: 8px; }
.chat-form input { flex: 1; min-width: 0; }
.busy { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.busy li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.util { display: grid; grid-template-columns: minmax(60px, 1fr) auto; gap: 8px; align-items: center; }
.util i { display: block; height: 8px; border-radius: 4px; background: var(--surface2); overflow: hidden; }
.util em { display: block; height: 100%; }
.doc { max-width: 880px; margin-inline: auto; }
.doc h1 { font-size: 26px; margin: 0; }
.clauses { display: grid; gap: 8px; padding-inline-start: 22px; line-height: 1.8; }
.sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sig { border: 1px dashed var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 2px; }
.sig.done { border-style: solid; border-color: var(--good); }
.qr { border: 1px solid var(--line); border-radius: 6px; flex: none; }
@media print {
  .top, .foot, #contact, #sim, #toast, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 0; }
  .wrap { max-width: none; padding: 0; }
}
@media (max-width: 480px) { .sigs { grid-template-columns: 1fr; } .note { flex-direction: column; align-items: flex-start; } }

/* "Waiting on you": the user's next actions, first thing on the dashboard */
.tasks { margin-bottom: 16px; }
.tasks h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.tasks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tasks li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tasks li.urgent { border-inline-start: 4px solid var(--warn); }
.tasks li > span { flex: 1; line-height: 1.6; }
.tasks li .ic { width: 20px; height: 20px; flex: none; color: var(--brand); }
.tasks li .btn { flex: none; }
.tasks.done { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.tasks.done .ic { width: 20px; height: 20px; color: var(--good); }
@media (max-width: 560px) {
  .tasks li { flex-wrap: wrap; }
  .tasks li .btn { width: 100%; justify-content: center; }
}
#nav .count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-inline-start: 6px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; vertical-align: middle; }
.narrow-col { max-width: 640px; }

/* ---- Yardak logo (brand guide v1.2): mark + name in navy with the "ك"/"ak" in turquoise + turquoise tagline.
   On dark surfaces the mark switches to the white-chain version: the gradient mark is never used on dark. */
.logo img { height: auto; flex-shrink: 0; }
.wordmark { color: var(--navy); letter-spacing: 0; }
.wordmark i { font-style: normal; color: var(--turq); }
.logo small { color: var(--turq); font-weight: 500; }
.wm-en { display: none; }
html[lang="en"] .wm-ar { display: none; }
html[lang="en"] .wm-en { display: inline; }
.logo.on-dark .wordmark { color: #fff; }
.logo.on-dark small { color: var(--turq); }
html.dark .wordmark { color: #fff; }
html.dark .logo:not(.on-dark) img { content: url(/brand/yardak-mark-on-dark.svg); }
.app-ico { border-radius: 13px; }

/* Subscriptions: plan cards and the admin's months field */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-block: 16px; }
.plan-price b { font-size: 28px; color: var(--ink); }
.row.between { justify-content: space-between; align-items: center; }
html.dark .plan-price b { color: #fff; }
.plan .row { flex-wrap: wrap; gap: 8px; }
.plan > .chip { align-self: flex-start; }
input.months { width: 64px; }
/* Fleet management */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 20px; margin: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; margin-bottom: 12px; }
.filters input { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; min-width: 0; flex: 1 1 200px; }

/* ---- Nafath request: the number to pick in the Nafath app ---- */
.nafath { text-align: center; align-items: center; }
.nafath-num { font-size: 56px; font-weight: 800; line-height: 1.1; color: var(--fg); letter-spacing: 2px; }
.inline-act > summary { list-style: none; display: inline-flex; cursor: pointer; }
.inline-act > summary::-webkit-details-marker { display: none; }
.inline-act[open] { flex-basis: 100%; }
.inline-act form { margin-top: 8px; }
/* Admin console: section tabs and the section's pages, under the header */
.admin-nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-nav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-block: 8px; }
.admin-tabs { display: flex; gap: 4px; background: var(--surface2); border-radius: 12px; padding: 3px; }
.admin-tabs a, .admin-links a { text-decoration: none; white-space: nowrap; font-size: 14px; border-radius: 9px; padding: 6px 12px; color: var(--fg); }
.admin-tabs a[aria-selected="true"] { background: var(--surface); color: var(--link); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.admin-only { font-size: 14px; color: var(--link); }
.admin-links { display: flex; gap: 2px; overflow-x: auto; }
.admin-links a[aria-current="page"] { color: var(--link); font-weight: 700; background: var(--accent-soft); }
.admin-links a:hover, .admin-tabs a:hover { background: var(--surface2); }
@media (max-width: 900px) { .admin-tabs { overflow-x: auto; max-width: 100%; } .admin-links { width: 100%; } }
.q-item { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline li { display: flex; gap: 10px; font-size: 14px; }
.timeline time { color: var(--muted); min-width: 150px; }
