:root {
  --ink: #16232c;
  --muted: #5b6b70;
  --surface: #f4f6f5;
  --card: #ffffff;
  --line: #dfe6e5;
  --primary: #0b4f6c;
  --primary-dark: #093c53;
  --accent: #d97b26;
  --accent-dark: #b8621a;
  --good: #2f7a5b;
  --bad: #b8451f;
  --express: #8a4fd6;
  --radius: 14px;
  --font: 'Cairo', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; /* client 2026-10-08: Cairo, like the provider app */
  --nav-h: 60px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

button,
input,
select,
textarea {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--primary);
  color: #fff;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.brand {
  flex: 1;
  text-align: center;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .02em;
}

.icon-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  padding: 2px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.icon-btn:active {
  background: rgba(255, 255, 255, .15);
}

.icon-btn.circle {
  width: 34px;
  height: 34px;
  padding: 0;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .55);
}

.icon-btn.circle:active {
  background: rgba(255, 255, 255, .15);
}

/* #backBtn is toggled via the native `hidden` attribute, which the
   browser defaults to display:none — that would drop it out of the
   flex row and pull .brand off-center on pages without a back button.
   Keep its 34px box reserved always; just hide it visually instead. */
#backBtn[hidden] {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
}

/* Balances #backBtn's width so .brand stays centered either way. */
.topbar-spacer {
  flex: 0 0 34px;
}

[dir="rtl"] #backBtn {
  transform: scaleX(-1);
}

.app {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  min-height: 60vh;
}

/* Home page only: its own sections (home-topbar, banner, svc grids)
   each carry their own 12px side inset already, so the outer .app
   padding is zeroed here entirely — otherwise the two would stack
   into a ~28px gutter instead of the intended 12px max. */
.app.flush {
  padding: 0 0 32px;
}

h1 {
  font-size: 20px;
  margin: 4px 0 4px;
}

h2 {
  font-size: 17px;
  margin: 0 0 10px;
}

h3 {
  font-size: 15px;
  margin: 0;
}

p.hint {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 18px;
}

.step-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  margin-top: 10px;
  transition: transform .05s ease;
}

.btn:active {
  transform: scale(.98);
}

.btn.secondary {
  background: var(--card);
  color: var(--primary);
  border: 1.5px solid var(--line);
}

.btn.accent {
  background: var(--accent);
}

.btn.accent:active {
  background: var(--accent-dark);
}

.btn.ghost {
  background: transparent;
  color: var(--primary);
  width: auto;
  padding: 8px 4px;
  margin-top: 0;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn small {
  font-weight: 500;
  opacity: .85;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.card.pressable {
  cursor: pointer;
  transition: box-shadow .1s;
}

.card.pressable:active {
  box-shadow: 0 0 0 2px var(--primary) inset;
}

.list-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

.list-item img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface);
  flex-shrink: 0;
}

.list-item .meta {
  flex: 1;
  min-width: 0;
}

.list-item .meta h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.list-item .meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.list-item .price {
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  font-size: 14px;
}

/* ---------------------------------------------------------------- */
/* Tip box — short instruction line under a page heading (static for */
/* now; the client will make it editable from the control panel).    */
/* ---------------------------------------------------------------- */
.tip-box {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #eaf3f1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 6px 0 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------------------------------------------------------------- */
/* Tank/service cards — image on one side, name/prices/delivery-time */
/* + Order button on the other. One consistent design used for       */
/* every product on this list, per the client's reference mockup.    */
/* ---------------------------------------------------------------- */
.tank-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card = one column, two rows: row1 is image+info, row2 is
   delivery-time+Order spanning the full card width underneath. */
.tank-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .1s;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(22, 35, 44, .06);
}

.tank-card:active {
  box-shadow: 0 0 0 2px var(--primary) inset;
}

.tank-row1 {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

/* Arabic: image on the right, info column on the left. English:
   image on the left (default DOM order) — see the row-reverse below. */
[dir="rtl"] .tank-row1 {
  flex-direction: row-reverse;
}

.tank-img {
  width: 42%;
  flex: 0 0 42%;
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tank-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tank-img-fallback {
  font-size: 34px;
  opacity: .5;
}

.tank-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tank-body h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
}

.tank-desc {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.chip {
  display: inline-block;
  background: #eef2ff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 6px;
  align-self: flex-start;
}

.tank-body .price-pair {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  justify-content: flex-start;
}

.price-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-col.express {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

[dir="rtl"] .price-col.express {
  border-left: none;
  border-right: 1px solid var(--line);
  padding-left: 0;
  padding-right: 22px;
}

.price-col .price-label {
  font-size: 12px;
  color: var(--muted);
}

.price-col .p-reg,
.price-col .p-exp {
  font-weight: 800;
  color: var(--good);
  font-size: 18px;
}

/* Row 2: full-width, not confined to the info column above. */
.tank-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tank-eta {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.tank-order {
  width: auto;
  flex: 0 0 auto;
  padding: 10px 26px;
  font-size: 14.5px;
  border-radius: 24px;
  background: var(--good);
}

.tank-order:active {
  background: #245f47;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--card);
  font-size: 15px;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.field textarea {
  resize: vertical;
  min-height: 70px;
}

.field.inline {
  display: flex;
  gap: 10px;
}

.field.inline>div {
  flex: 1;
}

#map,
#dropMap {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.price-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.price-box .amount {
  font-size: 34px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.price-box .zone {
  font-size: 13px;
  opacity: .85;
  margin-top: 4px;
}

.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 18px 0;
}

.otp-inputs input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border-radius: 10px;
  border: 1.5px solid var(--line);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.total {
  font-weight: 800;
  font-size: 16px;
  color: var(--primary);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: #e4f1ea;
  color: var(--good);
}

.status-pill.bad {
  background: #faeae3;
  color: var(--bad);
}

.status-pill.wait {
  background: #fdf1e0;
  color: var(--accent-dark);
}

.center-icon {
  font-size: 48px;
  text-align: center;
  margin: 20px 0 8px;
}

.center-text {
  text-align: center;
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-block {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.loading-block .spinner {
  border-color: var(--line);
  border-top-color: var(--primary);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 16px);
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 11px 18px;
  border-radius: 99px;
  font-size: 13.5px;
  z-index: 50;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  max-width: 90vw;
  text-align: center;
}

.location-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.location-badge strong {
  color: var(--ink);
}

.location-badge .chg {
  margin-left: auto;
  color: var(--primary);
  font-weight: 700;
  font-size: 12.5px;
}

.crumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.crumbs strong {
  color: var(--ink);
}

/* ---------------------------------------------------------------- */
/* Hero / Home                                                       */
/* ---------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 65%);
  color: #fff;
  margin: 0 -16px 18px;
  padding: 22px 20px 26px;
  border-radius: 0 0 26px 26px;
  position: relative;
  overflow: hidden;
}

.hero:after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
}

.hero h1 {
  font-size: 23px;
  margin: 2px 0 6px;
  color: #fff;
}

.hero p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .85);
  font-size: 13.5px;
  max-width: 80%;
}

.hero .location-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}

.hero .location-pill b {
  font-weight: 700;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.cat-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow .1s;
}

.cat-tile:active {
  box-shadow: 0 0 0 2px var(--primary) inset;
}

.cat-tile .ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin: 0 auto 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cat-tile .ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-tile .ico span {
  font-size: 24px;
}

.cat-tile p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 12px;
}

.section-title h2 {
  margin: 0;
}

/* ---------------------------------------------------------------- */
/* Home header (icons row + welcome + location)                      */
/* ---------------------------------------------------------------- */
/* The colored .topbar app bar is hidden on Home (see core.js render()),
   so this now sits at the very top of the screen — add the phone's own
   status-bar/notch inset so content doesn't render underneath it. */
.home-topbar {
  padding: calc(14px + env(safe-area-inset-top)) 12px 0;
}

.icons-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.hicon {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: var(--ink);
}

.hicon.lang {
  width: auto;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  margin-left: auto;
}

.hicon.menu {
  background: transparent;
  border: none;
  font-size: 20px;
}

[dir="rtl"] .hicon.lang {
  margin-left: 0;
  margin-right: auto;
}

/* Location on one side, customer's name on the other — same row. */
.loc-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
}

.welcome-title {
  flex: 0 1 auto;
  text-align: right;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[dir="rtl"] .welcome-title {
  text-align: left;
}

.loc-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  padding: 0;
  cursor: pointer;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loc-row .chev {
  color: var(--muted);
  font-weight: 400;
}

/* ---------------------------------------------------------------- */
/* Promo banner carousel (real data from Webservice::get_banner)     */
/* ---------------------------------------------------------------- */
/* direction:ltr pinned regardless of page language — under dir="rtl"
   an unscoped flex row auto-reverses child order, which breaks the
   translateX(-i*100%) slide math in wireCarousel(). */
.banner-carousel {
  margin: 0 12px 18px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  direction: ltr;
}

.banner-track {
  display: flex;
  transition: transform .4s ease;
}

.banner-slide {
  min-width: 100%;
}

.banner-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--surface);
}

/* Dots render as their own row under the carousel (see home.js —
   bannerCarousel() renders them after .banner-track closes), not as
   an overlay on top of the image. */
.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
}

.banner-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}

.banner-dots .dot.active {
  background: var(--primary);
  width: 7px;
}

.hero {
  margin: 0 12px 18px;
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------- */
/* Services grid — first two categories large (2-up), the rest small */
/* (3-up), matching the client's reference layout. The icon image    */
/* already has the service name baked into it, so no separate label  */
/* is rendered underneath — object-fit:contain keeps that image      */
/* fully visible (nothing cropped) at as large a size as the card    */
/* allows.                                                            */
/* ---------------------------------------------------------------- */
.section-title {
  padding: 0 12px;
}

/* Two-tier hierarchy: the first two services (svc-main-grid) are large,
   prominent primary tiles; every other service (svc-grid) is a smaller
   secondary tile, three across. Both share the same card look — a big
   image (the service name is already baked into the graphic, so no
   text label repeats it below) and an Order Now button — just at
   different sizes, so the app's visual identity (radius, shadow,
   spacing) stays consistent. */
.svc-main-grid {
  display: grid;
  gap: 10px;
  padding: 0 12px 10px;
  grid-template-columns: 1fr 1fr;
}

.svc-grid {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
  grid-template-columns: 1fr 1fr 1fr;
}

.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: box-shadow .1s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.svc-card:active {
  box-shadow: 0 0 0 2px var(--primary) inset;
}

.svc-img {
  width: 100%;
  background: #fff;
  overflow: hidden;
}

.svc-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.svc-img span {
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.svc-body {
  padding: 6px 8px 8px;
}

.svc-card .btn.sm {
  width: 100%;
  padding: 8px 6px;
  font-size: 12px;
  margin-top: 0;
}

/* Primary tiles: shorter image so the two big tiles take up less
   vertical space up top. */
.svc-card-main .svc-img {
  aspect-ratio: 3/2;
}

/* Secondary tiles: smaller square image, compact button underneath. */
.svc-card-sm .svc-img {
  aspect-ratio: 1/1;
}

.svc-card-sm .svc-body {
  padding: 4px 6px 6px;
}

.svc-card-sm .btn.sm {
  padding: 5px 4px;
  font-size: 10.5px;
}

/* ---------------------------------------------------------------- */
/* Offers                                                             */
/* ---------------------------------------------------------------- */
.offer-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.offer-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

/* ---------------------------------------------------------------- */
/* Bottom nav                                                        */
/* ---------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
  height: var(--nav-h);
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.bottom-nav a .ic {
  font-size: 18px;
}

.bottom-nav a.active {
  color: var(--primary);
}

.bottom-nav a.fab-link {
  color: var(--good);
  position: relative;
  margin-top: -22px;
}

.bottom-nav a.fab-link .fab {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--good);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 400;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  margin-bottom: 2px;
  line-height: 1;
}

.bottom-nav a.fab-link.active {
  color: var(--good);
}

/* ---------------------------------------------------------------- */
/* Dual pricing                                                      */
/* ---------------------------------------------------------------- */
.price-pair {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
  white-space: nowrap;
}

.price-pair .p-reg {
  font-weight: 800;
  color: var(--primary);
  font-size: 14px;
}

.price-pair .p-exp {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--express);
}

.price-pair .p-exp:before {
  content: '⚡ ';
}

.price-pair .p-loading {
  font-size: 11.5px;
  color: var(--muted);
}

.price-mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.price-mode-toggle button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--card);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.price-mode-toggle button.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #eaf2f5;
}

.price-mode-toggle button.express.active {
  border-color: var(--express);
  color: var(--express);
  background: #f4edfc;
}

/* ---------------------------------------------------------------- */
/* Order type tabs + schedule rows                                   */
/* ---------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: var(--surface);
  padding: 4px;
  border-radius: 12px;
}

.tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.tabs button.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.schedule-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.schedule-row .field {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.schedule-row .field-qty {
  flex: 0 0 64px;
}

/* Narrow phones: Time moves to its own line so Date isn't squeezed. */
@media (max-width: 480px) {
  .schedule-row { flex-wrap: wrap; }
  .schedule-row .field-time { flex: 1 1 100%; order: 3; }
}

.schedule-row .rm {
  background: transparent;
  border: none;
  color: var(--bad);
  font-size: 20px;
  line-height: 1;
  padding: 8px 4px;
  cursor: pointer;
}

.add-line {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1.5px dashed var(--line);
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  margin-bottom: 14px;
}

/* ---------------------------------------------------------------- */
/* Payment methods                                                   */
/* ---------------------------------------------------------------- */
.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
}

.pay-method .ic {
  font-size: 22px;
  width: 30px;
  text-align: center;
}

.pay-method .txt {
  flex: 1;
}

.pay-method .txt h3 {
  margin: 0 0 2px;
}

.pay-method .txt p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.pay-method .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  position: relative;
}

.pay-method.selected {
  border-color: var(--primary);
  background: #eaf2f5;
}

.pay-method.selected .dot {
  border-color: var(--primary);
}

.pay-method.selected .dot:after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary);
}

.pay-method.disabled {
  opacity: .55;
  cursor: not-allowed;
}

.upload-box {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 14px;
  background: var(--card);
}

.upload-box.has-file {
  border-color: var(--good);
  color: var(--good);
}

.upload-box input {
  display: none;
}

.upload-box img {
  max-height: 120px;
  border-radius: 10px;
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------- */
/* Order photos — "photos of the building" attached from /order.     */
/* ---------------------------------------------------------------- */
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-thumb {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-thumb.uploading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-rm {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(22, 35, 44, .7);
  color: #fff;
  border: none;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

[dir="rtl"] .photo-rm {
  right: auto;
  left: 2px;
}

.photo-add {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  border: 1.5px dashed var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
}

/* ---------------------------------------------------------------- */
/* Tracking timeline + driver card                                   */
/* ---------------------------------------------------------------- */
.timeline {
  margin: 6px 0 18px;
}

.tl-step {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 22px;
}

.tl-step:last-child {
  padding-bottom: 0;
}

.tl-step .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--line);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  font-weight: 700;
}

.tl-step:not(:last-child):before {
  content: '';
  position: absolute;
  left: 12.5px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.tl-step.done .dot {
  background: var(--good);
}

.tl-step.done:before {
  background: var(--good);
}

.tl-step.current .dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px #dbe9ef;
}

.tl-step.bad .dot {
  background: var(--bad);
}

.tl-step .txt h3 {
  margin: 1px 0 2px;
  font-size: 14px;
}

.tl-step .txt p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.driver-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.driver-card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
}

.driver-card .meta {
  flex: 1;
  min-width: 0;
}

.driver-card .meta h3 {
  margin: 0 0 2px;
}

.driver-card .meta p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.driver-card a.call {
  background: var(--good);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.order-lookup {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.order-lookup input {
  flex: 1;
}

.order-lookup button {
  width: auto;
  padding: 12px 18px;
  margin-top: 0;
}

.empty-state {
  text-align: center;
  padding: 40px 10px;
  color: var(--muted);
}

.empty-state .ic {
  font-size: 38px;
  margin-bottom: 10px;
}

/* ---------------------------------------------------------------- */
/* Bank Transfer — Bank Details, Receipt (rewrite), Receipt Status.  */
/* ---------------------------------------------------------------- */
.bank-amount-card {
  margin-bottom: 12px;
}

.bank-details-card {
  margin-bottom: 14px;
}

.bank-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.bank-field-row:last-of-type {
  border-bottom: none;
}

.bfr-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bfr-label {
  font-size: 12px;
  color: var(--muted);
}

.bfr-value {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}

.bank-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.bank-actions .btn {
  margin-top: 0;
}

.qr-card {
  text-align: center;
}

.bank-qr-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin: 4px auto 10px;
  display: block;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.qr-card .btn {
  margin-top: 6px;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 35, 44, .55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}

/* Without this, the plain `.confirm-overlay{display:flex}` rule above
   has the same CSS specificity as the browser's own [hidden]{display:
   none} default and — being an author rule — wins the cascade, so the
   overlay showed up immediately on page load instead of staying
   hidden until "I Have Transferred the Amount" is tapped. */
.confirm-overlay[hidden] {
  display: none;
}

.confirm-box {
  background: var(--card);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 22px 18px 26px;
  width: 100%;
  max-width: 480px;
}

.confirm-box h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--ink);
}

.confirm-box .btn {
  margin-top: 10px;
}

.receipt-preview {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
  text-align: center;
}

.receipt-preview img {
  max-height: 160px;
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.pdf-chip {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: var(--ink);
}

.receipt-preview-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.receipt-preview-actions .btn {
  margin-top: 0;
}

.static-content {
  padding: 0 12px 24px;
  line-height: 1.7;
  color: var(--ink);
  font-size: 14.5px;
}

.static-content img {
  max-width: 100%;
  border-radius: 8px;
}

.static-content h1,
.static-content h2,
.static-content h3 {
  color: var(--primary);
  margin: 16px 0 8px;
}

.static-content p {
  margin: 0 0 12px;
}

.static-content ul,
.static-content ol {
  margin: 0 0 12px;
  padding-inline-start: 20px;
}

.static-content a {
  color: var(--primary);
}

/* ---------------------------------------------------------------
 * Step 12.4 (Milestone 1): Shahem Chat
 * --------------------------------------------------------------- */
.nav-badge, .chat-badge {
  display: inline-block;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--bad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  vertical-align: middle;
}
.nav-badge[hidden], .chat-badge[hidden] { display: none; }
.bottom-nav .ic { position: relative; }
.bottom-nav .nav-badge { position: absolute; top: -6px; inset-inline-end: -12px; }
.chat-open-btn { display: flex; align-items: center; justify-content: center; gap: 6px; }

.chat-screen {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 150px); /* app bar + bottom nav */
  min-height: 360px;
}
.chat-head h1 { margin-bottom: 0; }
.chat-head .hint { margin: 2px 0 10px; }
.chat-msgs {
  flex: 1;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.chat-empty { color: var(--muted); text-align: center; margin: 40px 12px; font-size: 14px; }
.chat-row { display: flex; margin-bottom: 8px; }
.chat-row.mine { justify-content: flex-end; }
.chat-bubble {
  max-width: 80%;
  padding: 8px 11px;
  border-radius: 14px;
  background: #eef3f2;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.chat-row.mine .chat-bubble { background: var(--primary); color: #fff; }
.chat-text { white-space: pre-wrap; }
.chat-bubble img { display: block; max-width: 100%; max-height: 240px; border-radius: 10px; margin-bottom: 4px; }
.chat-bubble audio { display: block; width: 230px; max-width: 100%; height: 38px; margin-bottom: 4px; }
.chat-meta { font-size: 11px; opacity: .7; margin-top: 3px; }
.chat-rec { color: var(--bad); font-size: 13px; padding: 6px 4px 0; }
.chat-rec[hidden] { display: none; }
.chat-bar { display: flex; gap: 6px; align-items: flex-end; padding-top: 8px; }
.chat-bar textarea {
  flex: 1;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  font: inherit;
  font-size: 15px;
}
.chat-icon-btn, .chat-send {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--card);
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.chat-icon-btn.recording { background: var(--bad); border-color: var(--bad); }
.chat-send { background: var(--accent); border-color: var(--accent); color: #fff; }
.chat-send:disabled { opacity: .6; }
[dir="rtl"] .chat-send { transform: scaleX(-1); }

/* Rating & Review (Admin Panel requirements §4) */
.rate-card h3 { margin: 0 0 4px; }
.rate-card .hint { margin: 0 0 10px; }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef1f6; }
.rate-row.overall { border-bottom: 0; font-weight: 700; }
.rate-stars { display: inline-flex; direction: ltr; }
.rate-stars .star { background: none; border: 0; font-size: 28px; line-height: 1; padding: 4px 3px; min-width: 40px; min-height: 44px; color: #d5dbe6; cursor: pointer; }
.rate-stars .star.on { color: #f9a825; }
.rate-stars-ro { color: #f9a825; font-size: 20px; letter-spacing: 2px; direction: ltr; }
.rate-label { display: block; margin: 12px 0 6px; font-weight: 600; }
.rate-card textarea { width: 100%; border: 1px solid #d5dbe6; border-radius: 10px; padding: 10px; font: inherit; resize: vertical; box-sizing: border-box; }
.rate-card .btn { margin-top: 12px; }
.rate-comment { margin: 10px 0 0; color: #4a5568; font-style: italic; }

/* Help Center (Admin Panel requirements §5) */
.help-card { display: block; color: inherit; text-decoration: none; }
.help-card .btn { margin-top: 8px; }
.help-item h3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.help-select, .help-text { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; background: #fff; }
.help-select { min-height: 46px; }
.help-text { resize: vertical; }
.help-msgs { max-height: 55vh; min-height: 160px; }
.help-order-link { margin-top: 10px; }

/* Price on Request + Price Difference (client 2026-10-05) */
.price-col.por .p-reg { color: var(--accent-dark); font-size: 15px; }
.pr-card .pr-amount { font-size: 28px; font-weight: 800; color: var(--primary); margin: 6px 0; direction: ltr; }
.pr-card .pr-note { color: #4a5568; font-style: italic; margin: 4px 0 10px; }
.pr-card h4 { margin: 12px 0 6px; }
.pr-card .btn { margin-top: 10px; }
.pr-card input[type=file] { display: block; margin-top: 8px; }
.manual-loc { margin-top: 14px; }
.manual-loc summary { cursor: pointer; color: var(--primary); font-weight: 600; padding: 8px 0; }
.manual-loc textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; }
.manual-loc .btn { margin-top: 8px; }

/* Transport journey — pickup / delivery maps, work options, price box */
#pickMap, .tp-map { width: 100%; height: 220px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 6px; }
.tp-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.tp-opt { min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; font-weight: 600; color: inherit; cursor: pointer; padding: 8px; }
.tp-opt.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.tp-quote { margin-top: 4px; }
.tp-quote .hint { margin: 0; }
.p-reg.tp-card { font-size: 13px; font-weight: 600; }
.tp-mark { margin: 0 0 14px; }

/* Technician / Contractor journey — video thumbnails in the photo grid */
.photo-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.photo-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; pointer-events: none; }

/* Home top bar: unread Help Center replies on the 💬 icon */
.home-topbar .hicon { position: relative; }
.hicon-badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.hicon-badge[hidden] { display: none; }

/* Technician marketplace — technicians on a request */
.tc-tech-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.tc-tech.assigned { border: 2px solid var(--good); }
.tc-last { margin: 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-tech .btn { margin-top: 6px; }
.tc-accept { margin-top: 8px; }
.tc-pay { display: grid; gap: 6px; margin-top: 8px; }
.tc-chosen { color: var(--good); font-weight: 700; margin: 6px 0; }

/* Notifications (client 2026-10-08): top-bar bell, banner for a new order update, list */
.top-notif { position: relative; font-size: 16px; }
.top-notif[hidden] { display: none !important; }
.notice-banner { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 2000; width: calc(100% - 24px); max-width: 496px;
  display: flex; align-items: flex-start; gap: 10px; text-align: start; background: #fff; color: var(--ink); border: 1px solid #e3e8ef; border-inline-start: 4px solid var(--accent, #f59f00);
  border-radius: 14px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); font: inherit; cursor: pointer; }
.notice-banner[hidden] { display: none; }
.notice-banner.show { animation: nbIn .25s ease-out; }
@keyframes nbIn { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.notice-banner .nb-ic { font-size: 20px; line-height: 1.2; }
.notice-banner .nb-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.notice-banner .nb-txt span { color: #4a5568; font-size: 13px; }
.notice-banner .nb-txt em { font-style: normal; color: #6b7280; font-size: 12px; }
.notice-banner .nb-x { font-size: 20px; color: #9aa3b2; padding: 0 2px; }
.nt-item { display: block; color: inherit; text-decoration: none; }
.nt-item.unread { border-inline-start: 4px solid var(--accent, #f59f00); background: #fffdf5; }
.nt-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.nt-body { margin: 4px 0 2px; color: #374151; font-size: 14px; }

/* Messages inbox (client 2026-10-08) */
.inbox-item { display: flex; gap: 12px; align-items: flex-start; color: inherit; text-decoration: none; }
.inbox-item.unread { border-inline-start: 4px solid var(--accent); background: #fffdf5; }
.inbox-av { flex: 0 0 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: #64748b; font-size: 17px; }
.inbox-av.shahem { background: var(--primary, #1f4e5f); } .inbox-av.pro { background: var(--accent); } .inbox-av.help { background: #ede9fe; font-size: 20px; }
.inbox-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inbox-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.inbox-sub { font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-prev { font-size: 14px; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.inbox-item.unread .inbox-prev { font-weight: 700; }
a.list-item { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------------------------------------------------------
   Compact UI (client feedback 2026-10-10: smaller cards, photos, maps and chat buttons; clear action rows).
   Shared by the customer web app and the provider app.
   --------------------------------------------------------------------------------------------------------------- */
/* small pill buttons (chat, help, navigate …) instead of full-width blocks */
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--primary); font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer;
  white-space: nowrap; line-height: 1.2; }
.chip-btn:active { transform: scale(.97); }
.chip-btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-btn .chat-badge { margin: 0; }
.chip-btn[disabled] { opacity: .5; pointer-events: none; }
/* a row of actions at the bottom of a card / page */
.act-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.act-row > .btn { width: auto; flex: 1 1 0; margin: 0; padding: 10px 12px; font-size: 14px; border-radius: 10px; }
.act-row.split > * { flex: 1 1 0; justify-content: center; }
.page-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
/* tighter cards */
.card.tight { padding: 12px 14px; margin-bottom: 10px; }
.card .sec-title { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: none; margin: 0 0 6px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 5px 0; }
.kv > span:first-child { color: var(--muted); flex: 0 0 auto; }
.kv > span:last-child { text-align: end; min-width: 0; }
.meta-line { font-size: 13px; color: var(--muted); margin: 2px 0; }
/* photos / videos: small thumbnails, full size in the viewer */
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.thumb { position: relative; width: 60px; height: 60px; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; cursor: pointer; flex: 0 0 auto; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; background: rgba(0,0,0,.35); }
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lightbox-x { position: absolute; top: calc(12px + env(safe-area-inset-top)); inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.18); color: #fff; font-size: 24px; cursor: pointer; }
/* small map with Pickup | Drop-off tabs */
.map-tabs { display: flex; gap: 6px; margin: 8px 0 6px; }
.map-tab { flex: 1; padding: 7px 8px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.map-tab.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.map-tab .ok { color: var(--good); margin-inline-start: 4px; }
.map-tab.active .ok { color: #c7f0d8; }
.mini-map { width: 100%; height: 150px; border-radius: 12px; border: 1px solid var(--line); z-index: 0; }
.mini-map.pick { height: 210px; }
.map-place { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
/* customer order page (client 2026-10-10) */
.hsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0 12px; text-align: center; font-size: 11.5px; color: var(--muted); }
.hsteps.two { grid-template-columns: repeat(2, 1fr); }
.hstep span { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 auto 3px; border-radius: 50%; background: var(--line); color: var(--muted); font-weight: 800; font-size: 12px; }
.hstep.done span { background: var(--good); color: #fff; }
.hstep.current { color: var(--ink); font-weight: 700; }
.hstep.current span { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(11, 79, 108, .15); }
.hstep.bad span { background: var(--bad, #c62828); color: #fff; }
.hstep.bad { color: var(--bad, #c62828); font-weight: 700; }
h2.sec-h { font-size: 16px; margin: 14px 0 8px; }
.tc-offer.chosen { border: 2px solid var(--good); }
.tc-head { display: flex; align-items: center; gap: 10px; }
.tc-head .inbox-av { flex-basis: 36px; height: 36px; font-size: 15px; }
.tc-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tc-who .meta-line { margin: 0; }
.tc-price { font-size: 18px; font-weight: 800; color: var(--primary); text-align: end; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.tc-price small { font-size: 11px; font-weight: 600; color: var(--accent-dark); }
.tc-price.none { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tc-line { margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-note { font-size: 13.5px; color: var(--ink); margin-top: 4px; white-space: pre-line; overflow-wrap: anywhere; word-break: break-word; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tc-offer.open .tc-note { -webkit-line-clamp: unset; display: block; }
.tc-more { margin-top: 4px; }
.tc-offer .act-row { margin-top: 8px; }
.tc-offer .tc-toggle { margin-inline-start: auto; }
.tc-pay { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.tc-pay[hidden] { display: none; }
.tc-pay-lbl { font-size: 12.5px; color: var(--muted); }
.tc-chosen { margin: 6px 0 0; font-size: 13.5px; }
.driver-card { padding: 10px 14px; }
.driver-card .chip-btn { margin-inline-start: auto; }
.driver-card .chip-btn .chat-badge { margin-inline-start: 2px; }

/* transport order form: one map with Pickup | Delivery pins */
.tp-pin { background: none; border: 0; }
.tp-pin span { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; font-size: 24px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }

.status-pill.sm { font-size: 11.5px; padding: 2px 9px; }
.list-item .meta p { margin: 3px 0 0; }
.tp-opt { min-height: 40px; padding: 6px 8px; font-size: 14px; }

/* Product cards — compact (client 2026-10-10: at least three cards per screen, smaller title and image) */
.tank-list { gap: 10px; }
.tank-card { gap: 8px; padding: 10px 12px; border-radius: 14px; }
.tank-row1 { gap: 12px; align-items: center; }
.tank-img { width: 96px; flex: 0 0 96px; height: 68px; border-radius: 8px; }
.tank-img img { object-fit: contain; }
.tank-img-fallback { font-size: 26px; }
.tank-body h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.tank-desc { font-size: 12.5px; line-height: 1.35; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tank-body .chip { margin-bottom: 4px; padding: 2px 8px; }
.tank-body .price-pair { gap: 14px; }
[dir="rtl"] .price-col.express { padding-right: 14px; }
.price-col.express { padding-left: 14px; }
.price-col { gap: 1px; }
.price-col .price-label { font-size: 11px; }
.price-col .p-reg, .price-col .p-exp { font-size: 15px; }
.tank-row2 { padding-top: 8px; }
.tank-order { padding: 6px 18px; font-size: 13.5px; margin-top: 0; }
.tank-eta { font-size: 11.5px; }

/* location screen: the pin is set → green note + the confirm button pulses (client 2026-10-10) */
#pickedAddr.loc-picked { background: #e8f5ee; color: var(--good); border: 1px solid #bfe3cf; border-radius: 10px; padding: 8px 12px; font-weight: 600; margin: 6px 0 4px; }
#confirmLoc.pulse { animation: locPulse 1.1s ease-out 3; }
@keyframes locPulse { 0% { box-shadow: 0 0 0 0 rgba(217, 123, 38, .55); } 100% { box-shadow: 0 0 0 14px rgba(217, 123, 38, 0); } }

/* offer details sheet + three equal small buttons on each offer (client 2026-10-10) */
.tc-offer .act-row { flex-wrap: nowrap; }
.tc-offer .act-row > .chip-btn { flex: 1 1 0; justify-content: center; padding: 7px 6px; font-size: 13px; min-width: 0; }
.tc-offer .tc-toggle { margin-inline-start: 0; }
.sheet-bg { position: fixed; inset: 0; z-index: 2500; background: rgba(15, 23, 42, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--card); width: 100%; max-width: 520px; max-height: 86vh; overflow-y: auto; border-radius: 18px 18px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); animation: sheetUp .2s ease-out; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 4px auto 10px; }
.sheet-title { font-size: 16px; margin: 0 0 10px; }
.sheet-note { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; line-height: 1.6; max-height: 50vh; overflow-y: auto; background: var(--surface, #f6f7f9); border-radius: 10px; padding: 8px 10px; margin-top: 4px; }
.sheet-acts { margin-top: 14px; }

/* provider photo + stars on offers (client 2026-10-10) */
.pro-ph { position: relative; overflow: hidden; }
.pro-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-head .inbox-av, .tc-head .pro-ph { flex-basis: 42px; width: 42px; height: 42px; }
.stars { color: #f5a623; letter-spacing: 1px; }

/* help before logging in (client 2026-10-10) */
.login-help-link { display: block; text-align: center; margin: 18px 0 8px; font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
.lh-topics { display: flex; flex-wrap: wrap; gap: 8px; }

/* "Work with us as a service provider" (client 2026-10-10) */
.join-card { display: flex; align-items: center; gap: 12px; margin: 16px 16px 8px; color: inherit; text-decoration: none; background: linear-gradient(135deg, #fff7ee, #fff); border-color: #f3d7b8; }
.join-ic { font-size: 30px; flex: 0 0 auto; }
.join-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.join-txt .hint { font-size: 12.5px; margin: 0; }
.join-card .chip-btn { flex: 0 0 auto; }

/* Apple Pay (client 2026-10-10): the same card payment page (Tap) */
.apple-pay-ic { display: inline-flex; align-items: center; gap: 1px; background: #000; color: #fff; border-radius: 6px; padding: 3px 7px 3px 6px; font-size: 13px; font-weight: 600; letter-spacing: -.2px; line-height: 1; font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; }
.apple-pay-ic svg { margin-top: -2px; }
.pay-method .ic .apple-pay-ic { font-size: 12px; }

/* Web Push: "Turn on notifications" card (client 2026-10-10) */
.push-card { display: flex; align-items: center; gap: 10px; position: relative; background: #eef6fa; border-color: #cfe4ee; }
.push-home .push-card { margin: 12px 16px 0; }
.push-ic { font-size: 24px; flex: 0 0 auto; }
.push-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.push-txt .hint { font-size: 12.5px; margin: 0; }
.push-card .chip-btn { flex: 0 0 auto; }
.push-x { position: absolute; top: 2px; inset-inline-end: 6px; border: 0; background: none; font-size: 18px; color: #9aa3b2; cursor: pointer; }

/* "Add Shahem to your home screen" (client 2026-10-10) */
.a2-head { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.a2-head img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.15); flex: 0 0 auto; }
.a2-head .sheet-title { margin: 0 0 4px; }
.a2-head .hint { margin: 0; }
.a2-steps { margin: 6px 0 10px; padding-inline-start: 22px; font-size: 14.5px; line-height: 1.6; }
.a2-steps li { margin-bottom: 6px; }

/* a banner that opens a service (client 2026-10-10) */
.banner-slide.banner-link { cursor: pointer; }

/* client 2026-10-11: long notes (technician quotation, customer description) keep their lines and wrap — never one cut line */
.pr-note, .od-note, .order-note, .user-note { white-space: pre-line; overflow-wrap: anywhere; word-break: break-word; }

/* supply tankers: Urgent / Scheduled choice with its price (client 2026-10-11) */
.when-title { font-size: 15px; margin: 14px 0 8px; }
.when-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.when-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; padding: 12px; border: 2px solid var(--line, #e3e7ef); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: var(--ink, #1f2a44); }
.when-opt .w-ic { font-size: 20px; line-height: 1; }
.when-opt b { font-size: 14.5px; } .when-opt small { color: var(--muted, #6b7588); font-size: 12px; }
.when-opt .w-price { margin-top: 6px; font-weight: 800; font-size: 16px; }
.when-opt.urgent .w-price { color: #d35400; }
.when-opt.active { border-color: var(--accent, #1f3673); background: #f4f7ff; box-shadow: 0 0 0 3px rgba(31, 54, 115, .08); }
.when-opt.urgent.active { border-color: #e67e22; background: #fff8f1; box-shadow: 0 0 0 3px rgba(230, 126, 34, .12); }
.price-pair .price-col.express .price-label { color: #d35400; }

/* an element marked hidden stays hidden, whatever its class sets (client 2026-10-11: the technician's date / time showed for urgent requests) */
[hidden] { display: none !important; }

/* client 2026-10-19: ⚡ urgent and 📅 scheduled price NEXT TO each other (one short line) — the card stays compact */
.tank-body .price-pair { display: block; }
.price-inline { display: flex; gap: 6px; flex-wrap: nowrap; align-items: stretch; margin-top: 2px; }
.price-inline .pi { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 3px 6px; line-height: 1.15; background: #fff; }
.price-inline .pi small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.price-inline .pi b { font-size: 14px; font-weight: 800; white-space: nowrap; }
.price-inline .pi.urgent { border-color: #f5c99b; background: #fff8f1; }
.price-inline .pi.urgent b { color: #d35400; }
.price-inline .pi.sched b { color: var(--good); }
.when-opt small.when-from { color: #1f3673; font-weight: 600; }

/* client 2026-10-19: service images on a WHITE background, the whole picture visible (no transparent / grey edges) */
.tank-img { background: #fff; border: 1px solid var(--line); }
.svc-img { background: #fff; }
.tank-img img, .svc-img img { object-fit: contain; background: #fff; padding: 2px; box-sizing: border-box; }

/* client 2026-10-19 — sub-service card like the mock-up: a large, clear photo; title + description; two prices side by side;
   a divider; green "Order now" pill + delivery time */
.tank-card { padding: 14px 16px 12px; border-radius: 18px; gap: 0; box-shadow: 0 2px 10px rgba(15, 29, 61, .06); }
.tank-row1 { gap: 12px; align-items: center; }
.tank-img { width: 37%; max-width: 210px; flex: 0 0 37%; height: 108px; border: 0; border-radius: 10px; background: #fff; }
.tank-img img { width: 100%; height: 100%; object-fit: contain; padding: 0; background: #fff; }
.tank-img-fallback { font-size: 44px; }
.tank-body { min-width: 0; }
.tank-body h3 { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.tank-desc { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; -webkit-line-clamp: 2; }
.price-duo { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: flex-start; align-items: flex-end; }
.price-duo .pd { display: flex; flex-direction: column; gap: 3px; flex: 0 0 auto; }
.price-duo .pd small { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.price-duo .pd.urgent small { color: #c77700; }
.price-duo .pd b { font-size: 15px; font-weight: 800; white-space: nowrap; line-height: 1.1; }
.price-duo .pd-reg { color: #14456b; }
.price-duo .pd-exp { color: #7b4fd6; }
.price-duo .pd-exp i { font-style: normal; color: #f2b200; font-size: 15px; }
.tank-row2 { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tank-order { background: #2e7d5b; color: #fff; border: 0; border-radius: 999px; padding: 10px 30px; font-size: 15px; font-weight: 700; margin: 0; width: auto; box-shadow: none; }
.tank-order:active { background: #256a4c; }
.tank-eta { font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (max-width: 360px) { .tank-img { height: 92px; } .price-duo .pd b { font-size: 15px; } .tank-order { padding: 9px 22px; } }
