*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn[wght].woff2") format("woff2-variations"),
    url("/fonts/Vazirmatn[wght].woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #039952;
  --green-dark: #028047;
  --green-soft: #e8f7ee;
  --text: #18191b;
  --muted: #8f8f8f;
  --muted-2: #6b6b6b;
  --bg: #ffffff;
  --bg-soft: #f6f8f5;
  --bg-page: #f4f5f4;
  --line: #ececec;
  --line-2: #e2e4e2;
  --red: #e53935;
  --star: #f5a623;
  --blue: #2f80ed;
  --blue-soft: #ebf3fd;
  --orange: #f2994a;
  --orange-soft: #fff4e8;
  --shop: #eb5757;
  --shop-soft: #fdeeee;
  --purple: #7b5cff;
  --purple-soft: #f1edff;
  --surface: #ffffff;
  --skel-a: #eef0ee;
  --skel-b: #f7f8f7;
  --switch-off: #d5d9d4;
  --map-bg: #e9eae6;
  --star-line: #bfc5bb;
  --star-soft: #fff4dc;
  --backdrop: rgba(0, 0, 0, 0.28);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-fab: 0 4px 12px rgba(0, 0, 0, 0.12);
  --nav-h: 76px;
  --header-h: 56px;
  --side: 248px;
}

html {
  height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
}

body {
  font-family: "Vazirmatn", "Tahoma", sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button,
a[data-go],
.chip,
.cat-item,
.pill-btn,
.service-item,
.quick-item,
.ship-card,
.mini-item,
.home-loc,
.wallet-topup {
  cursor: pointer;
}

button {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 22px;
  height: 22px;
  overflow: visible;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon use {
  stroke: currentColor;
  fill: none;
}

.icon--sm {
  width: 18px;
  height: 18px;
}

.icon--lg {
  width: 48px;
  height: 48px;
}

/* ========== App shell ========== */

[hidden] {
  display: none !important;
}

.app-body {
  background: var(--bg);
  min-height: 100dvh;
}

.app {
  min-width: 0;
  max-width: 100%;
  min-height: 100dvh;
}

.app-main {
  min-width: 0;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: var(--header-h);
  padding: 8px 16px;
  background: var(--surface);
}

.app-topbar--page {
  border-bottom: 1px solid var(--line);
}

.app-topbar--home {
  align-items: flex-start;
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: 72px;
  gap: 8px;
}

.home-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  text-align: right;
  color: var(--text);
}

.home-loc .icon {
  color: var(--green);
  flex-shrink: 0;
}

.home-loc span,
.home-hello__text {
  min-width: 0;
}

.home-loc strong,
.home-hello__text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.home-loc small,
.home-hello__text small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-2);
  overflow-wrap: anywhere;
}

.home-hello {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.home-hello__text {
  text-align: left;
}

.home-hello__text strong {
  font-size: 13px;
}

.home-hello__text small {
  max-width: none;
}

.home-hello .icon-btn {
  flex-shrink: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--green);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 16px;
  height: 16px;
  overflow: visible;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

.logo-mark svg use {
  stroke: #fff;
  fill: none;
}

.brand-lockup__name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.location-chip .icon {
  color: var(--green);
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--text);
}

/* Hover styles apply only where a real pointer can hover and the screen is
   wider than a phone; on touch screens they stick after a tap. */
@media (hover: hover) and (min-width: 768px) {
  .icon-btn:hover {
    background: var(--bg-soft);
  }
}

.badge {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.page-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.view {
  display: none;
  padding: 0 16px 24px;
}

.view.is-active {
  display: block;
}

.view--flush {
  padding-left: 0;
  padding-right: 0;
}

.view--flush.is-active {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--header-h) - var(--nav-h));
}

/* Bottom nav */

.bottom-nav {
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr 64px 1fr 1fr;
  align-items: end;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #9a9a9a;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 0 2px;
}

.nav-item.is-active {
  color: var(--green);
  font-weight: 700;
}

.nav-fab-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transform: translateY(-18px);
}

.nav-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-fab);
}

.nav-fab .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.side-nav {
  display: none;
}

.app.is-detail .bottom-nav {
  display: none;
}

.app.is-detail .app-main {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--green);
  color: #fff;
}

@media (hover: hover) and (min-width: 768px) {
  .btn--primary:hover {
    background: var(--green-dark);
  }
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-2);
}

.btn--soft {
  background: var(--bg-soft);
  color: var(--text);
}

.btn--block {
  width: 100%;
}

.btn:focus-visible,
.icon-btn:focus-visible,
.nav-item:focus-visible,
.nav-fab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Hero slider */

.hero-slider {
  --hero-dur: 6.5s;
  --hero-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --hero-accent: #36c47f;
  position: relative;
  isolation: isolate;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d1512;
  color: #fff;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.hero-track {
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 276px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--hero-ease), visibility 0s linear 0.8s;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s var(--hero-ease), visibility 0s;
}

.hero-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.hero-slide.is-active .hero-slide__img,
.hero-slide.is-leaving .hero-slide__img {
  animation: hero-zoom calc(var(--hero-dur) + 2s) linear both;
}

/* Directional shade: dense behind the RTL text, clear over the photo */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to left,
      rgba(7, 13, 11, 0.84) 0%,
      rgba(7, 13, 11, 0.58) 38%,
      rgba(7, 13, 11, 0.14) 72%,
      rgba(7, 13, 11, 0) 100%
    ),
    linear-gradient(to top, rgba(7, 13, 11, 0.72) 0%, rgba(7, 13, 11, 0) 46%);
}

/* Fine dot grid behind the copy */
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.3px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 55%);
  mask-image: linear-gradient(to left, #000 0%, transparent 55%);
  pointer-events: none;
}

.hero-slide__overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
  padding: 20px 18px 58px;
}

.hero-slide__overlay > * {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}

.hero-slide.is-active .hero-slide__overlay > * {
  animation: hero-rise 0.75s var(--hero-ease) both;
}

.hero-slide.is-active .hero-slide__overlay > :nth-child(1) {
  animation-delay: 0.15s;
}

.hero-slide.is-active .hero-slide__overlay > :nth-child(2) {
  animation-delay: 0.25s;
}

.hero-slide.is-active .hero-slide__overlay > :nth-child(3) {
  animation-delay: 0.35s;
}

.hero-slide.is-active .hero-slide__overlay > :nth-child(4) {
  animation-delay: 0.45s;
}

.hero-slide.is-leaving .hero-slide__overlay > * {
  animation: hero-fall 0.35s ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px;
  padding-inline-end: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.hero-eyebrow__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
}

.hero-eyebrow__icon .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.hero-slide__title {
  max-width: 16em;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
  text-wrap: balance;
}

.hero-mark {
  color: #d3f6e3;
  background-image: linear-gradient(var(--hero-accent), var(--hero-accent));
  background-repeat: no-repeat;
  background-position: right 0 bottom 0.08em;
  background-size: 0% 0.14em;
}

.hero-slide.is-active .hero-mark {
  animation: hero-underline 0.7s var(--hero-ease) 0.75s both;
}

.hero-slide__text {
  max-width: 30em;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-cta {
  min-height: 42px;
  padding: 6px 16px;
  font-size: 13px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-cta:active {
  transform: scale(0.97);
}

.hero-cta--primary {
  padding-inline-end: 6px;
  background: var(--green);
  color: #fff;
}

@media (hover: hover) and (min-width: 768px) {
  .hero-cta--primary:hover {
    background: var(--green-dark);
  }

  .hero-cta--primary:hover .hero-cta__arrow {
    transform: translateX(-3px);
  }

  .hero-cta--glass:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .hero-dot:hover {
    background: rgba(255, 255, 255, 0.5);
  }

  .hero-arrow:hover {
    background: rgba(255, 255, 255, 0.22);
  }
}

.hero-cta__arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.25s var(--hero-ease);
}

.hero-cta--glass {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-cta:focus-visible,
.hero-arrow:focus-visible,
.hero-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Controls */

.hero-controls {
  position: absolute;
  z-index: 3;
  right: 18px;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.hero-controls > * {
  pointer-events: auto;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-dot {
  position: relative;
  width: 18px;
  height: 4px;
  padding: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.45s var(--hero-ease), background-color 0.3s ease;
}

.hero-dot::before {
  content: "";
  position: absolute;
  inset: -10px -3px;
}

.hero-dot.is-active {
  width: 42px;
}

.hero-dot__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right center;
}

.hero-dot.is-active .hero-dot__fill {
  animation: hero-progress var(--hero-dur) linear both;
}

.hero-slider.is-paused .hero-dot__fill,
.hero-slider.is-paused .hero-slide__img {
  animation-play-state: paused;
}

.hero-count {
  margin-inline-start: auto;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

.hero-count b {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.hero-arrows {
  display: none;
  gap: 8px;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-arrow:active {
  transform: scale(0.94);
}

/* Live route card (wide screens only) */

.hero-route {
  display: none;
}

.hero-route__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-route__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-route__icon .icon {
  width: 18px;
  height: 18px;
}

.hero-route__head strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.hero-route__head small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.64);
}

.hero-route__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(54, 196, 127, 0.16);
  color: #8fe3b9;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-route__live i {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hero-accent);
}

.hero-route__live i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--hero-accent);
  animation: hero-ping 1.8s ease-out infinite;
}

.hero-route__map {
  display: block;
  width: 100%;
  height: auto;
  margin: 12px 0 8px;
  overflow: visible;
}

.hero-route__base {
  fill: none;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1 6;
}

.hero-route__done {
  fill: none;
  stroke: var(--hero-accent);
  stroke-width: 3;
  stroke-linecap: round;
}

.hero-route__from {
  fill: #0d1512;
  stroke: #fff;
  stroke-width: 2;
}

.hero-route__to {
  fill: #fff;
}

.hero-route__ring {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-ring 2.2s ease-out infinite;
}

.hero-route__truck {
  color: #fff;
}

.hero-route__truck > circle {
  fill: var(--green);
  stroke: #fff;
  stroke-width: 2;
}

.hero-route__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.hero-route__pct {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.14) translate3d(1.5%, 0, 0);
  }
  to {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes hero-fall {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes hero-underline {
  to {
    background-size: 100% 0.14em;
  }
}

@keyframes hero-progress {
  to {
    transform: scaleX(1);
  }
}

@keyframes hero-card-in {
  from {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-ping {
  from {
    transform: scale(1);
    opacity: 0.9;
  }
  to {
    transform: scale(3);
    opacity: 0;
  }
}

@keyframes hero-ring {
  from {
    transform: scale(0.5);
    opacity: 0.8;
  }
  to {
    transform: scale(1.7);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider *,
  .hero-slider *::before,
  .hero-slider *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-slide__overlay > * {
    opacity: 1;
    transform: none;
  }

  .hero-slide__img {
    transform: none;
  }

  .hero-mark {
    background-size: 100% 0.14em;
  }

  .hero-dot.is-active .hero-dot__fill {
    transform: none;
  }
}

/* Services */

.service-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 10px 12px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 6px;
  color: var(--text);
}

.service-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.service-item__icon .icon {
  width: 24px;
  height: 24px;
}

.service-item__icon--green {
  background: var(--green-soft);
  color: var(--green);
}

.service-item__icon--blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.service-item__icon--orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.service-item__icon--red {
  background: var(--shop-soft);
  color: var(--shop);
}

.service-item span {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px 8px 12px;
  background: var(--bg-soft);
  border-radius: 20px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.quick-item span:last-child {
  text-align: center;
  overflow-wrap: anywhere;
}

.quick-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
}

.quick-item__icon .icon {
  width: 24px;
  height: 24px;
}

.quick-item__icon--green {
  color: var(--green);
}

.quick-item__icon--orange {
  color: var(--orange);
}

.quick-item__icon--blue {
  color: var(--blue);
}

.quick-item__icon--purple {
  color: var(--purple);
}

.ship-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.ship-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "route cities status"
    "meta meta meta";
  gap: 8px 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font: inherit;
  color: inherit;
  text-align: right;
}

.ship-route {
  grid-area: route;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 42px;
}

.ship-cities {
  grid-area: cities;
  min-width: 0;
}

.ship-meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted-2);
}

.ship-status {
  grid-area: status;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.ship-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ship-dot--from {
  background: var(--green);
}

.ship-dot--to {
  background: var(--red);
}

.ship-line {
  width: 2px;
  flex: 1;
  margin: 2px 0;
  background: var(--line-2);
}

.ship-cities strong,
.ship-cities span {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.ship-cities span {
  margin-top: 8px;
  color: var(--muted-2);
  font-weight: 500;
}

.ship-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted-2);
}

.ship-meta strong {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.ship-meta small {
  font-size: 11px;
}

.ship-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.ship-status small {
  font-size: 11px;
  color: var(--muted);
}

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.status-pill--done {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill--transit {
  background: var(--orange-soft);
  color: #d97706;
}

.wallet-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--green-soft);
  border-radius: 18px;
}

.wallet-card > div {
  flex: 1 1 100%;
  min-width: 0;
}

.wallet-card > div span {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
}

.wallet-card > div strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
}

.wallet-topup {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--green);
  background: var(--surface);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.wallet-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-inline-start: auto;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 4px;
  margin-bottom: 8px;
}

.mini-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 2px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--text);
}

.mini-item .icon {
  color: var(--muted-2);
}

.mini-item__icon {
  position: relative;
  display: grid;
}

.mini-item .badge {
  top: -6px;
  left: -8px;
}

.pill-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.pill-btn .icon {
  width: 16px;
  height: 16px;
  color: var(--green);
}

/* Sections / cards */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px;
}

.section-head h2 {
  font-size: 15px;
  font-weight: 800;
}

.link-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.load-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.load-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: right;
  width: 100%;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.load-card__img {
  width: 74px;
  height: 74px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.load-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.load-card__route {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.load-card__meta {
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 500;
}

.load-card__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 96px;
  text-align: left;
}

.load-card__time {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.load-card__price {
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  line-height: 1.4;
}

.load-card__share {
  color: var(--muted);
  padding: 2px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-soft);
  color: var(--muted-2);
  margin-inline-start: 6px;
}

.tag--urgent {
  background: var(--shop-soft);
  color: var(--shop);
}

/* Search */

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 0 12px;
  min-height: 46px;
  margin-bottom: 12px;
}

.search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text);
  min-width: 0;
}

.search-bar input::placeholder {
  color: var(--muted);
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
}

.chip.is-active {
  background: var(--green);
  color: #fff;
}

.empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 16px;
}

/* Map page (js/map-view.js) */

#view-map.is-active {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-h) - var(--nav-h) - env(safe-area-inset-bottom, 0px));
  min-height: 420px;
}

.map-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 20px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.map-tab {
  position: relative;
  padding: 10px 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.map-tab.is-active {
  color: var(--green);
}

.map-tab.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -1px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--green);
}

#view-map .map-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#appMap {
  position: absolute;
  inset: 0;
  background: var(--map-bg);
  direction: ltr;
}

.mv-top {
  position: absolute;
  z-index: 6;
  top: 12px;
  right: 12px;
  left: 12px;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.mv-top > * {
  pointer-events: auto;
}

.mv-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  color: var(--muted);
}

.mv-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.mv-results {
  position: absolute;
  z-index: 2;
  top: 52px;
  right: 0;
  left: 0;
  max-height: 280px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.mv-results button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: right;
}

.mv-results button:active {
  background: var(--bg-soft);
}

.mv-result__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.mv-results strong {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.mv-results small {
  font-size: 11.5px;
  color: var(--muted);
}

.mv-results .is-empty {
  padding: 12px;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}

.mv-chips {
  display: flex;
  gap: 6px;
  margin: 0 -12px;
  padding: 0 12px 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

/* Fade the edge that has more chips (RTL: start = right, end = left). */
.mv-chips.has-more-end {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px);
  mask-image: linear-gradient(to right, transparent 0, #000 40px);
}

.mv-chips.has-more-start {
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 40px);
  mask-image: linear-gradient(to left, transparent 0, #000 40px);
}

.mv-chips.has-more-start.has-more-end {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.mv-chips::-webkit-scrollbar {
  display: none;
}

.mv-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding-inline: 5px 12px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  transition: border-color 0.2s ease;
}

.mv-chip__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--chip);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mv-chip.is-on {
  border-color: var(--chip);
}

.mv-chip.is-on .mv-chip__icon {
  background: var(--chip);
  color: #fff;
}

.mv-glyph {
  width: 15px;
  height: 15px;
}

.mv-hint {
  justify-self: center;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(24, 25, 27, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.mv-fabs {
  position: absolute;
  z-index: 6;
  left: 12px;
  bottom: calc(var(--mv-sheet-h, 140px) + 24px);
  display: grid;
  gap: 8px;
  transition: bottom 0.25s ease;
}

.mv-fab {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  color: var(--text);
}

.mv-fab .mv-glyph {
  width: 20px;
  height: 20px;
}

.mv-locate {
  color: var(--green);
}

.mv-theme {
  position: relative;
}

/* Opens upward, toward the middle of the map (clear of the bottom sheet). */
.mv-theme .ymap-theme-menu {
  bottom: 0;
  left: 52px;
}

.mv-sheet {
  position: absolute;
  z-index: 7;
  right: 12px;
  left: 12px;
  bottom: 12px;
  max-height: 52%;
  padding: 14px;
  overflow-y: auto;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  overscroll-behavior: contain;
}

.mv-sheet:empty {
  display: none;
}

.mv-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.mv-list-head strong {
  font-size: 14px;
  font-weight: 800;
}

.mv-list-head small {
  font-size: 11.5px;
  color: var(--muted);
}

.mv-list {
  display: flex;
  gap: 8px;
  margin: 0 -14px;
  padding: 0 14px 2px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.mv-list::-webkit-scrollbar {
  display: none;
}

.mv-mini {
  display: flex;
  flex: 0 0 236px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: right;
  scroll-snap-align: start;
}

.mv-mini:active {
  background: var(--bg-soft);
}

.mv-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-soft);
  object-fit: cover;
}

.mv-thumb--icon {
  display: grid;
  place-items: center;
}

.mv-thumb--icon .mv-glyph {
  width: 24px;
  height: 24px;
}

.mv-mini__text {
  min-width: 0;
}

.mv-mini__text strong,
.mv-mini__text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-mini__text strong {
  font-size: 13px;
  font-weight: 800;
}

.mv-mini__text small {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.mv-empty {
  padding: 8px;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}

.mv-card {
  position: relative;
}

.mv-close {
  position: absolute;
  top: -4px;
  left: -4px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted-2);
}

.mv-close svg {
  width: 16px;
  height: 16px;
}

.mv-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 36px;
}

.mv-card__top .mv-thumb {
  width: 56px;
  height: 56px;
}

.mv-card__text {
  min-width: 0;
}

.mv-card__text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.mv-card__text small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-2);
}

.mv-card__price {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--green-dark);
}

.mv-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.mv-stats .skeleton {
  width: 60%;
  height: 26px;
  border-radius: 999px;
}

.mv-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 700;
}

.mv-stat--muted {
  font-weight: 600;
  color: var(--muted-2);
}

.mv-stat__icon {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.mv-locate-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.mv-locate-inline .mv-stat__icon {
  color: var(--blue);
}

.mv-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
}

.mv-nav__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
}

.mv-nav__apps {
  display: flex;
  gap: 6px;
}

.mv-nav__app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.mv-nav__app:active {
  background: var(--bg-soft);
}

.mv-nav__icon {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.mv-card .btn--block {
  margin-top: 4px;
}

.mv-me {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2f80ed;
  box-shadow: 0 0 0 6px rgba(47, 128, 237, 0.18), 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Pinch-zoom on phones; zoom buttons only on wide screens. */
#view-map .maplibregl-ctrl-top-left {
  display: none;
}

@media (hover: hover) and (min-width: 768px) {
  .mv-chip:hover {
    border-color: var(--chip);
  }

  .mv-mini:hover,
  .mv-results button:hover,
  .mv-close:hover {
    background: var(--bg-soft);
  }

  .mv-fab:hover,
  .ymap-theme-menu button:hover {
    background: var(--bg-soft);
  }

  .mv-locate:hover {
    background: var(--green-soft);
  }

  .mv-nav__app:hover {
    border-color: var(--blue);
  }
}

@media (min-width: 1024px) {
  #view-map.is-active {
    height: calc(100dvh - 120px);
    min-height: 560px;
  }

  .mv-top {
    top: 16px;
    right: 16px;
    left: auto;
    width: min(430px, calc(100% - 32px));
  }

  .mv-chips,
  .mv-chips.has-more-start,
  .mv-chips.has-more-end {
    flex-wrap: wrap;
    margin: 0;
    padding: 0 0 2px;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .mv-sheet {
    right: 16px;
    left: auto;
    bottom: 16px;
    width: 400px;
    max-height: calc(100% - var(--mv-top-h, 130px) - 44px);
  }

  .mv-fabs {
    left: 16px;
    bottom: 16px;
  }

  .mv-list {
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .mv-mini {
    flex: 0 0 auto;
  }

  #view-map .maplibregl-ctrl-top-left {
    display: block;
    top: 4px;
  }
}

.maplibregl-map,
.maplibregl-ctrl-attrib {
  font-family: inherit;
}

/* Day/night menu (js/map.js), used by the map control and the map page. */
.ymap-theme-menu {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  width: 168px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  animation: ymap-menu-in 0.16s ease;
}

.ymap-theme-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.ymap-theme-menu button[aria-checked="true"] {
  background: var(--green-soft);
  color: var(--green-dark);
}

.ymap-theme-menu small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.ymap-theme__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* The map control sits under the zoom buttons and opens to the right. */
.ymap-theme {
  position: relative;
}

.ymap-theme .ymap-theme-menu {
  top: 0;
  left: calc(100% + 8px);
}

.ymap-theme__btn {
  display: grid !important;
  place-items: center;
  color: #33363a;
}

.ymap-theme__btn .ymap-theme__icon {
  width: 17px;
  height: 17px;
}

@keyframes ymap-menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* Map status pill (js/map.js): loading, slow, offline, failed tiles. */
.ymap-status {
  position: absolute;
  z-index: 3;
  top: 28%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(24, 25, 27, 0.86);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  transform: translateX(-50%);
  animation: ymap-status-in 0.2s ease;
}

.ymap-status[hidden] {
  display: none;
}

.ymap-status svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.ymap-status--loading svg,
.ymap-status--slow svg {
  animation: ymap-spin 0.9s linear infinite;
}

.ymap-status--offline svg,
.ymap-status--error svg {
  color: #ffcf70;
}

.ymap-status button {
  flex-shrink: 0;
  margin-inline-start: 2px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: #18191b;
  font-size: 12px;
  font-weight: 700;
}

/* Light pills over the night map. */
.ymap--dark .ymap-status,
.map-stage.is-dark .mv-hint {
  background: rgba(255, 255, 255, 0.95);
  color: #18191b;
}

.ymap--dark .ymap-status--offline svg,
.ymap--dark .ymap-status--error svg {
  color: #d9861c;
}

.ymap--dark .ymap-status button {
  background: #18191b;
  color: #fff;
}

@keyframes ymap-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ymap-status-in {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
}

.maplibregl-ctrl-top-left {
  top: 56px;
}

/* Request picker: the day/night button sits under the search bar. */
#flowMapPanel .maplibregl-ctrl-top-left {
  top: 62px;
}

/* Workshops / shop */

.shop-card,
.product-card,
.msg-card,
.menu-item,
.form-card,
.promo-card,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.shop-list,
.product-grid,
.msg-list,
.menu-list,
.features-grid {
  display: grid;
  gap: 10px;
}

.shop-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  text-align: right;
}

.shop-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.shop-card h3 {
  font-size: 14px;
  font-weight: 800;
}

.shop-card p,
.stars,
.km {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 4px;
}

.stars {
  color: var(--star);
  font-weight: 700;
}

.stars span {
  color: var(--muted-2);
  font-weight: 500;
}

.shop-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.round-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--green);
}

.sticky-cta {
  position: sticky;
  bottom: calc(var(--nav-h) + 8px);
  margin-top: 16px;
  z-index: 5;
}

.cat-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scrollbar-width: none;
}

.cat-row::-webkit-scrollbar {
  display: none;
}

.cat-item {
  flex-shrink: 0;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.cat-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--green);
}

.cat-item.is-active .cat-item__icon {
  background: var(--green-soft);
}

.promo-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  align-items: center;
  background: #1f2a24;
  color: #fff;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}

.promo-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.promo-card p {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 10px;
}

.promo-card .btn {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 12px;
}

.promo-card img {
  height: 88px;
  width: 100%;
  object-fit: contain;
}

.product-grid {
  grid-template-columns: 1fr 1fr;
}

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  text-align: right;
}

.product-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: var(--bg-soft);
}

.product-card__body {
  padding: 10px 10px 12px;
}

.product-card h3 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.product-card .price {
  margin-top: 6px;
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
}

/* Load details */

.detail-hero {
  position: relative;
  height: 220px;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero__bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding: 8px 8px;
}

.detail-hero__bar .icon-btn {
  background: rgba(255, 255, 255, 0.92);
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.detail-panel {
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  margin-top: -20px;
  position: relative;
  padding: 20px 16px 16px;
}

.detail-panel h1 {
  font-size: 18px;
  font-weight: 800;
}

.detail-price {
  margin: 8px 0 16px;
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
}

.spec-list {
  display: grid;
  gap: 0;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.spec-row dt {
  color: var(--muted-2);
  font-weight: 500;
}

.spec-row dd {
  font-weight: 700;
  text-align: left;
}

.detail-note {
  margin-top: 14px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted-2);
}

.detail-bar {
  display: none;
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 30;
  gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.app.is-detail .detail-bar {
  display: flex;
}

.detail-bar .btn--primary {
  flex: 1;
}

.detail-bar .btn--ghost {
  min-width: 120px;
}

/* Profile */

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 4px 20px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--green-soft);
}

.profile-head h1 {
  font-size: 18px;
  font-weight: 800;
}

.role {
  font-size: 13px;
  color: var(--muted-2);
  margin: 2px 0 6px;
}

.stars {
  font-size: 13px;
  font-weight: 700;
  color: var(--star);
}

.stars span {
  color: var(--muted-2);
  font-weight: 500;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  border-radius: var(--radius);
  text-align: right;
}

.menu-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--green);
}

.menu-item__label {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
}

.menu-item__value {
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
}

.menu-item .chev {
  color: var(--muted);
  transform: rotate(180deg);
}

.product-card,
.msg-card,
.menu-item,
.feature-tile {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Messages */

.msg-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  width: 100%;
  text-align: right;
}

.msg-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.msg-card h3 {
  font-size: 14px;
  font-weight: 800;
}

.msg-card p {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-card__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-inline-start: auto;
}

.unread {
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* New load form */

.form-card {
  border-radius: var(--radius-lg);
  padding: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  min-height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
}

.form-success {
  display: none;
  text-align: center;
  padding: 28px 12px;
}

.form-success.is-visible {
  display: block;
}

.form-success h2 {
  margin: 12px 0 6px;
  font-size: 18px;
}

.form-success p {
  color: var(--muted-2);
  font-size: 13px;
}

/* Features */

.features-grid {
  grid-template-columns: 1fr 1fr;
}

.feature-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 110px;
  text-align: right;
}

.feature-tile span {
  font-size: 14px;
  font-weight: 700;
}

/* Toast / sheet */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 16px);
  transform: translateX(-50%) translateY(16px);
  background: #222;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  transition: 0.2s ease;
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}

.sheet.is-open {
  display: block;
}

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: var(--backdrop);
}

.sheet__panel {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  max-height: 70dvh;
  overflow: auto;
}

.sheet__panel h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.notice-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.notice-item strong {
  display: block;
  margin-bottom: 4px;
}

.notice-item span {
  color: var(--muted);
}

/* ========== Shipper request flow (js/order.js) ========== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.btn--danger {
  background: var(--red);
  color: #fff;
}

.btn--danger-text {
  color: var(--red);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.app.is-flow .bottom-nav {
  display: none;
}

.app.is-flow .app-main {
  padding-bottom: 0;
}

.view.view--flow {
  padding: 0;
}

.view--flow.is-active {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-h));
  min-height: 480px;
  overflow: hidden;
}

/* Vehicle drawings */

.vart {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.vart__wheel {
  fill: var(--vart-bg, var(--surface));
}

/* Iranian licence plate (yellow = commercial vehicle) */

.plate {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  height: 28px;
  border: 1.5px solid #18191b;
  border-radius: 5px;
  overflow: hidden;
  background: #f6c945;
  color: #111;
  font-weight: 800;
  line-height: 1;
}

.plate__flag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 14px;
  padding: 3px 0 2px;
  background: #1f4fa3;
}

.plate__flag i {
  width: 8px;
  height: 6px;
  background: linear-gradient(#239f40 0 33%, #fff 33% 66%, #da0000 66%);
}

.plate__flag b {
  font-size: 5.5px;
  font-weight: 800;
  color: #fff;
  font-family: Tahoma, sans-serif;
}

.plate__main {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  font-size: 15px;
}

.plate__main em {
  font-style: normal;
  font-size: 13px;
}

.plate__region {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-left: 1.5px solid #18191b;
  font-size: 12px;
}

.plate__region small {
  font-size: 6.5px;
  font-weight: 700;
  line-height: 1.2;
}

/* Avatars */

.avatar-s {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
}

.avatar-s--txt {
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 17px;
  font-weight: 800;
}

.avatar-s--lg {
  width: 72px;
  height: 72px;
  margin: 4px auto 12px;
  font-size: 26px;
}

.rate-line {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.rate-line b {
  color: var(--star);
}

.rate-line small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

/* Steps */

.flow-steps {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 12px 8px;
  list-style: none;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.flow-steps li {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.flow-steps li + li::before {
  content: "";
  position: absolute;
  top: 12px;
  right: calc(-50% + 18px);
  left: calc(50% + 18px);
  height: 2px;
  border-radius: 2px;
  background: var(--line-2);
}

.flow-steps li.is-done + li::before {
  background: var(--green);
}

.flow-steps__dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
}

.flow-steps__dot .icon {
  width: 14px;
  height: 14px;
}

.flow-steps li.is-done .flow-steps__dot {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.flow-steps li.is-current {
  color: var(--text);
  font-weight: 800;
}

.flow-steps li.is-current .flow-steps__dot {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.flow-steps__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Map picker */

.flow-map {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.flow-map__stage {
  position: relative;
  flex: 1;
  min-height: 220px;
  overflow: hidden;
}

/* IDs, not classes: maplibre-gl.css (loaded later) sets .maplibregl-map to
   position: relative, which would collapse these containers to 0px. */
#flowMap,
#orderMap,
#tripMap {
  position: absolute;
  inset: 0;
  background: var(--map-bg);
  direction: ltr;
}

.flow-search {
  position: absolute;
  z-index: 6;
  top: 12px;
  right: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  color: var(--muted);
}

.flow-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.flow-search__results {
  position: absolute;
  top: 52px;
  right: 0;
  left: 0;
  max-height: 280px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.flow-search__results button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: right;
}

.flow-search__results button:active {
  background: var(--bg-soft);
}

.flow-search__results strong {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.flow-search__results small {
  font-size: 11.5px;
  color: var(--muted);
}

.flow-search__results .is-empty {
  padding: 12px;
  font-size: 13px;
  text-align: center;
}

.flow-locate {
  position: absolute;
  z-index: 6;
  left: 12px;
  bottom: 30px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  color: var(--green);
}

.flow-pin {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  transition: transform 0.18s ease;
  pointer-events: none;
}

.flow-pin::after {
  content: "";
  position: absolute;
  bottom: -3px;
  width: 10px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.flow-pin.is-lifting {
  transform: translate(-50%, calc(-100% - 10px));
}

.flow-pin.is-lifting::after {
  transform: translateY(10px) scale(1.4);
  opacity: 0.6;
}

.flow-pin__label {
  margin-bottom: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #18191b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.flow-pin__head {
  width: 24px;
  height: 24px;
  border: 7px solid var(--green);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.flow-pin__stick {
  width: 3px;
  height: 14px;
  margin-top: -2px;
  border-radius: 0 0 3px 3px;
  background: var(--green);
}

.flow-pin.is-dest .flow-pin__head {
  border-color: var(--red);
}

.flow-pin.is-dest .flow-pin__stick {
  background: var(--red);
}

.flow-map__sheet {
  position: relative;
  z-index: 7;
  margin-top: -18px;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

.flow-points {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.flow-point {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: right;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.flow-point i {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.flow-point--dest i {
  border-radius: 3px;
  background: var(--red);
  box-shadow: 0 0 0 3px var(--shop-soft);
}

.flow-point > span {
  min-width: 0;
}

.flow-point small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.flow-point strong {
  display: block;
  overflow: hidden;
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-point strong.is-muted {
  color: var(--muted);
  font-weight: 600;
}

.flow-point.is-active {
  border-color: var(--green);
  background: var(--green-soft);
}

.flow-point--dest.is-active {
  border-color: var(--red);
  background: var(--shop-soft);
}

.flow-point:disabled {
  opacity: 0.6;
  cursor: default;
}

.flow-cities {
  display: flex;
  gap: 6px;
  margin: 0 -16px 14px;
  padding: 0 16px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.flow-cities::-webkit-scrollbar {
  display: none;
}

.city-chip {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 700;
}

.city-chip:active {
  background: var(--green-soft);
}

/* Vehicle step keeps the map as a route preview */

.flow-map.is-preview {
  flex: 0 0 auto;
  height: 30dvh;
  min-height: 180px;
}

.flow-map.is-preview .flow-map__stage {
  min-height: 0;
}

.flow-map.is-preview .flow-search,
.flow-map.is-preview .flow-locate,
.flow-map.is-preview .flow-pin,
.flow-map.is-preview .flow-map__sheet {
  display: none;
}

/* Map markers */

.mk--origin {
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mk--dest {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: rotate(-45deg);
}

.mk--truck,
.mk--car {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.mk--truck {
  width: 40px;
  height: 40px;
  border: 2.5px solid var(--green);
  color: var(--green);
}

.mk--car {
  width: 30px;
  height: 30px;
  color: #18191b;
  animation: mk-pop 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.mk--truck .icon,
.mk--car .icon {
  width: 20px;
  height: 20px;
  transform: scaleX(-1);
}

.mk--car .icon {
  width: 16px;
  height: 16px;
}

.mk--radar {
  position: relative;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--green);
}

.mk--radar i {
  position: absolute;
  inset: -3px;
  border: 2px solid var(--green);
  border-radius: 50%;
  animation: yb-radar 2.4s ease-out infinite;
}

.mk--radar i + i {
  animation-delay: 1.2s;
}

/* Wizard body */

.flow-body {
  flex: 1;
  min-height: 0;
  padding: 16px 16px 0;
  overflow-y: auto;
  background: var(--bg-soft);
  overscroll-behavior: contain;
}

.flow-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.flow-title {
  margin: 20px 0 4px;
  font-size: 17px;
  font-weight: 800;
}

.flow-sub {
  margin-bottom: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

.route-sum {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.route-sum__points {
  position: relative;
  display: grid;
  gap: 10px;
}

.route-sum__points::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  right: 5px;
  border-right: 2px dashed var(--line-2);
}

.route-sum__pt {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}

.route-sum__pt i {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}

.route-sum__pt--d i {
  border-radius: 3px;
  background: var(--red);
}

.route-sum__pt b {
  padding-inline-end: 72px;
  font-size: 14px;
  font-weight: 800;
}

.route-sum__pt small {
  grid-column: 2;
  overflow: hidden;
  font-size: 12px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-sum__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-sum__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 700;
}

.route-sum__meta .icon {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.route-sum__meta .route-sum__approx {
  background: var(--orange-soft);
  color: #b4651c;
}

.route-sum__edit {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

.vehicle-list {
  display: grid;
  gap: 10px;
}

.vehicle-card {
  --vart-bg: var(--surface);
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-align: right;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.vehicle-card:active {
  transform: scale(0.99);
}

.vehicle-card__art {
  height: 36px;
  color: #2b2d30;
}

.vehicle-card__info strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
}

.vehicle-card__info small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

.vehicle-card__price {
  text-align: left;
}

.vehicle-card__price b {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.vehicle-card__price small {
  font-size: 10.5px;
  color: var(--muted);
}

.vehicle-card__check {
  position: absolute;
  top: -8px;
  left: -8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.vehicle-card__check .icon {
  width: 13px;
  height: 13px;
}

.vehicle-card.is-selected {
  --vart-bg: var(--green-soft);
  border-color: var(--green);
  background: var(--green-soft);
}

.vehicle-card.is-selected .vehicle-card__art {
  color: var(--green-dark);
}

.vehicle-card.is-selected .vehicle-card__check {
  opacity: 1;
  transform: none;
}

.flow-card {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.flow-wrap > .flow-card:first-child {
  margin-top: 0;
}

.flow-card.has-error {
  border-color: rgba(229, 57, 53, 0.55);
}

.flow-card__title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 800;
}

.flow-card__title small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

.flow-card .field {
  margin-bottom: 0;
}

.flow-card textarea {
  min-height: 84px;
  resize: vertical;
}

.flow-hint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted-2);
}

.flow-hint.is-error,
.flow-error {
  color: var(--red);
}

.flow-error {
  margin-top: 10px;
  font-size: 12px;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.stepper__btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.stepper__btn:active {
  background: var(--green-soft);
}

.stepper__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stepper__value input {
  width: 96px;
  border: 0;
  border-bottom: 2px solid var(--line-2);
  outline: none;
  background: transparent;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
}

.stepper__value input:focus {
  border-color: var(--green);
}

.stepper__value span {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted-2);
}

.chip-grid,
.rate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt-chip {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.opt-chip.is-selected {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.photo-tile,
.photo-add {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tile__remove {
  position: absolute;
  top: 4px;
  left: 4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

.photo-tile__remove .icon {
  width: 14px;
  height: 14px;
}

.photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1.5px dashed var(--line-2);
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.photo-add:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.day-strip {
  display: flex;
  gap: 8px;
  margin: 0 -16px 12px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.day-strip::-webkit-scrollbar {
  display: none;
}

.day-btn {
  display: flex;
  flex: 0 0 66px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  scroll-snap-align: start;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.day-btn small {
  font-size: 11px;
  color: var(--muted);
}

.day-btn b {
  font-size: 19px;
  font-weight: 800;
}

.day-btn span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
}

.day-btn.is-selected {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.day-btn.is-selected small,
.day-btn.is-selected span {
  color: rgba(255, 255, 255, 0.82);
}

.slot-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.slot-btn {
  padding: 8px 4px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
}

.slot-btn small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
}

.slot-btn.is-selected {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.toggle-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.toggle-row:first-child {
  padding-top: 0;
}

.toggle-row strong {
  display: block;
  font-size: 13.5px;
}

.toggle-row small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--line-2);
  transition: background-color 0.2s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.toggle-row[aria-checked="true"] .switch {
  background: var(--green);
}

.toggle-row[aria-checked="true"] .switch::after {
  transform: translateX(-18px);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.review-list {
  margin: 0;
}

.review-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.review-row:first-child {
  padding-top: 0;
}

.review-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.review-row__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
}

.review-row__icon .icon {
  width: 19px;
  height: 19px;
}

.review-row dt {
  font-size: 11.5px;
  color: var(--muted);
}

.review-row dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
}

.review-row__edit {
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--bg-soft);
}

.segmented button {
  padding: 10px 8px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.segmented button[aria-checked="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.pay-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: right;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pay-opt:last-child {
  margin-bottom: 0;
}

.pay-opt > .icon {
  color: var(--green);
}

.pay-opt strong {
  display: block;
  font-size: 13.5px;
}

.pay-opt small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.pay-opt__radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
}

.pay-opt[aria-checked="true"] {
  border-color: var(--green);
  background: var(--green-soft);
}

.pay-opt[aria-checked="true"] .pay-opt__radio {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 3px var(--surface);
}

.pay-opt:disabled {
  opacity: 0.55;
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--muted-2);
}

.price-line--total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1.5px dashed var(--line-2);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.flow-bar {
  position: sticky;
  z-index: 5;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px -16px 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.flow-bar__sum {
  flex: 1;
  min-width: 0;
}

.flow-bar__sum small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.flow-bar__sum strong {
  font-size: 16px;
  font-weight: 800;
}

.flow-bar .btn {
  flex: 0 0 auto;
  min-width: 148px;
}

/* Order screens */

.order-layout {
  position: relative;
  flex: 1;
  min-height: 0;
}

.order-map {
  position: absolute;
  inset: 0;
}

.order-sheet {
  position: absolute;
  z-index: 5;
  right: 0;
  left: 0;
  bottom: 0;
  max-height: 62%;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  overscroll-behavior: contain;
  transition: max-height 0.3s ease;
}

.order-layout.is-tall .order-sheet {
  max-height: 88%;
}

.osheet > .btn--block {
  margin-top: 8px;
}

.osheet--center {
  text-align: center;
}

.osheet__handle {
  width: 40px;
  height: 4px;
  margin: 2px auto 14px;
  border-radius: 99px;
  background: var(--line-2);
}

.find-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.find-head h2 {
  font-size: 16px;
  font-weight: 800;
}

.find-head p {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

.find-radar {
  --vart-bg: var(--green-soft);
  position: relative;
  display: grid;
  flex: 0 0 60px;
  place-items: center;
  height: 60px;
  padding: 0 9px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
}

.find-radar .vart {
  height: 20px;
}

.find-radar i {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(3, 153, 82, 0.45);
  border-radius: 50%;
  animation: yb-radar 2.2s ease-out infinite;
}

.find-radar i + i {
  animation-delay: 1.1s;
}

.find-bar {
  height: 4px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--green-soft);
}

.find-bar span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: 99px;
  background: var(--green);
  animation: yb-slide 1.5s ease-in-out infinite;
}

.offers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.offers-head h3 {
  font-size: 14px;
  font-weight: 800;
}

.offers-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 99px;
  background: #18191b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.offer-wait {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px dashed var(--line-2);
  border-radius: 16px;
  text-align: center;
}

.offer-wait p {
  font-size: 12.5px;
  color: var(--muted-2);
}

.skeleton {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--skel-a) 25%, var(--skel-b) 50%, var(--skel-a) 75%);
  background-size: 200% 100%;
  animation: yb-shimmer 1.4s linear infinite;
}

.skeleton--short {
  width: 60%;
  margin: 0 auto;
}

.offers-more {
  margin: -2px 0 10px;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}

.offer-card {
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  animation: offer-in 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.offer-card.is-leaving {
  animation: offer-out 0.26s ease forwards;
}

.offer-card__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.offer-card__who strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.offer-card__price {
  text-align: left;
}

.offer-card__price strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.offer-card__price small {
  font-size: 10.5px;
  color: var(--muted);
}

.offer-card__tag {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted-2);
}

.offer-card__tag--good {
  color: var(--green);
}

.offer-card__mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.offer-card__car {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted-2);
}

.offer-card__eta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted-2);
}

.offer-card__eta .icon {
  color: var(--green);
}

.offer-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 8px;
  margin-top: 12px;
}

.offer-card__actions .btn {
  min-height: 42px;
}

.order-mini {
  display: grid;
  gap: 6px;
  margin: 14px 0 4px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-soft);
  font-size: 12.5px;
}

.order-mini__route {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
}

.order-mini__route .icon {
  color: var(--muted);
}

.order-mini__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
}

.order-mini__row b {
  color: var(--text);
}

.track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.track-head__status {
  display: block;
  font-size: 12.5px;
  color: var(--muted-2);
}

.track-head__eta {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.live-pill {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 99px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11.5px;
  font-weight: 800;
}

.live-pill i,
.active-order__live {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.live-pill i::after,
.active-order__live::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  animation: yb-ping 1.8s ease-out infinite;
}

.track-progress {
  height: 6px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}

.track-progress span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--green);
  transition: width 0.5s linear;
}

.driver-card {
  --vart-bg: var(--bg-soft);
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.driver-card__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.driver-card__who strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
}

.driver-card__car {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted-2);
}

.driver-card__car .vart {
  flex: 0 0 52px;
  width: 52px;
  height: 24px;
  color: #2b2d30;
}

.driver-card__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.act-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 11.5px;
  font-weight: 700;
}

.act-btn .icon {
  color: var(--green);
}

.act-btn:active {
  background: var(--green-soft);
}

.timeline {
  margin: 16px 0 4px;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding-bottom: 16px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 0;
  right: 10px;
  width: 2px;
  background: var(--line-2);
}

.timeline li.is-done:not(:last-child)::before {
  background: var(--green);
}

.timeline__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
}

.timeline__dot .icon {
  width: 12px;
  height: 12px;
}

.timeline li.is-done .timeline__dot {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.timeline li.is-current .timeline__dot {
  border-color: var(--green);
}

.timeline li.is-current .timeline__dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.timeline__label {
  padding-top: 1px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.timeline li.is-done .timeline__label,
.timeline li.is-current .timeline__label {
  color: var(--text);
}

.timeline__time {
  padding-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.demo-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--muted);
}

.arrive-head {
  padding: 4px 0 12px;
  text-align: center;
}

.arrive-head__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.arrive-head__icon .icon {
  width: 30px;
  height: 30px;
}

.arrive-head__icon--muted {
  background: var(--bg-soft);
  color: var(--muted-2);
}

.arrive-head h2 {
  font-size: 18px;
  font-weight: 800;
}

.arrive-head p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted-2);
}

.osheet--center > h2 {
  font-size: 16px;
  font-weight: 800;
}

.rate-sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* Rating (order.js): driver photo in a ring that fills with the rating,
   outlined stars that fill one after another with sparks, then tags and a
   comment that open once a rating is picked. */

.rate > h2 {
  animation: rate-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.rate > .rate-sub {
  animation: rate-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}

.rate__avatar {
  --ring: var(--star);
  position: relative;
  width: 96px;
  height: 96px;
  margin: 2px auto 10px;
  animation: rate-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.rate__avatar[data-level="low"] {
  --ring: #ef6a4a;
}

.rate__avatar[data-level="high"] {
  --ring: var(--green);
}

.rate__avatar .avatar-s--lg {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 72px;
  height: 72px;
  margin: 0;
}

.rate__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.rate__ring circle {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.rate__ring-track {
  stroke: var(--line);
}

/* Circumference of r=46 is 289.03. */
.rate__ring-fill {
  stroke: var(--ring);
  stroke-dasharray: 289.03;
  stroke-dashoffset: calc(289.03 - var(--p, 0) * 2.8903);
  opacity: 0;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.3s ease, opacity 0.2s ease;
}

.rate__avatar[data-level] .rate__ring-fill {
  opacity: 1;
}

.rate__badge {
  position: absolute;
  left: 4px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--green);
  animation: rate-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
}

.rate__badge svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: rate-draw 0.35s ease 0.65s forwards;
}

.rate__done {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  animation: rate-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.rate-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 6px;
}

.rstar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
  animation: rate-star-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(0.3s + var(--i) * 0.07s);
}

.rstar:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.rstar svg {
  width: 40px;
  height: 40px;
  overflow: visible;
  transition: transform 0.2s ease;
}

.rstar__base {
  fill: var(--bg-soft);
  stroke: var(--star-line);
  stroke-width: 1.4;
  stroke-linejoin: round;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.rstar__fill {
  fill: var(--star);
  stroke: #e28a0b;
  stroke-width: 1.2;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0);
  transform-origin: 12px 12.3px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0ms), opacity 0.12s ease var(--d, 0ms);
}

.rstar.is-on .rstar__fill {
  opacity: 1;
  transform: scale(1);
}

.rstar.is-on .rstar__base {
  stroke: #e28a0b;
}

.rstar.is-preview:not(.is-on) .rstar__base {
  fill: var(--star-soft);
  stroke: var(--star);
}

.rstar.is-preview svg {
  transform: scale(1.08);
}

.rstar:active svg {
  transform: scale(0.86);
}

.rstar__burst {
  fill: var(--star);
  stroke: var(--star);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0;
  transform-origin: 12px 12.3px;
}

.rstar.is-picked svg {
  animation: rstar-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rstar.is-picked .rstar__burst {
  animation: rstar-burst 0.65s ease-out;
}

/* Five stars: the row does a small wave once they have filled. */
.rate-stars.is-max .rstar:not(.is-picked) svg {
  animation: rstar-wave 0.55s ease calc(0.28s + var(--i) * 0.07s);
}

.rate-caption {
  min-height: 28px;
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted-2);
}

.rate-caption[data-level] {
  font-size: 16px;
  font-weight: 800;
}

.rate-caption[data-level="low"] {
  color: #d9492f;
}

.rate-caption[data-level="mid"] {
  color: #b7791f;
}

.rate-caption[data-level="high"] {
  color: var(--green-dark);
}

.rate-caption__text {
  display: inline-block;
  animation: rate-caption 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rate > .rate-caption {
  animation: rate-rise 0.45s ease 0.7s both;
}

/* Opens smoothly to its content height once a rating is picked. */
.rate-more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.rate-more.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.rate-more__inner {
  min-height: 0;
  padding: 0 3px;
  overflow: hidden;
}

.rate-more__title {
  margin: 12px 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.rate-tags {
  justify-content: center;
  margin-bottom: 14px;
}

.rate-tag {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, gap 0.2s ease, transform 0.15s ease;
  animation: rate-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.08s + var(--i) * 0.05s);
}

.rate-tag__tick {
  width: 0;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: width 0.2s ease, stroke-dashoffset 0.3s ease 0.05s;
}

.rate-tag[aria-pressed="true"] {
  gap: 6px;
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.rate-tag[aria-pressed="true"] .rate-tag__tick {
  width: 14px;
  stroke-dashoffset: 0;
}

.rate-tag:active {
  transform: scale(0.95);
}

.rate [data-rate-submit]:not(:disabled) {
  animation: rate-ready 0.5s ease;
}

.rate-thanks {
  padding: 18px 0 10px;
}

.rate-thanks__check {
  display: block;
  width: 78px;
  height: 78px;
  margin: 6px auto 14px;
}

/* Circumference of r=23 is 144.5. */
.rate-thanks__check circle {
  fill: var(--green-soft);
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-dasharray: 144.5;
  stroke-dashoffset: 144.5;
  transform: rotate(-90deg);
  transform-box: fill-box;
  transform-origin: center;
  animation: rate-draw 0.6s ease forwards;
}

.rate-thanks__check path {
  fill: none;
  stroke: var(--green);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: rate-draw 0.4s ease 0.45s forwards;
}

.rate-thanks h2 {
  font-size: 18px;
  font-weight: 800;
  animation: rate-rise 0.4s ease 0.5s both;
}

.rate-thanks p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted-2);
  animation: rate-rise 0.4s ease 0.6s both;
}

.rate-thanks__stars {
  justify-content: center;
  margin-top: 12px;
  animation: rate-rise 0.4s ease 0.7s both;
}

.rate-thanks .star-s {
  width: 20px;
  height: 20px;
}

@keyframes rate-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes rate-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
}

@keyframes rate-pop-in {
  from {
    transform: scale(0);
  }
}

@keyframes rate-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes rate-star-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.6);
  }
}

@keyframes rstar-pop {
  35% {
    transform: scale(1.3) rotate(-10deg);
  }

  65% {
    transform: scale(0.94) rotate(3deg);
  }
}

@keyframes rstar-burst {
  0% {
    opacity: 0;
    transform: scale(0.55);
  }

  25% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

@keyframes rstar-wave {
  40% {
    transform: translateY(-7px) scale(1.08);
  }
}

@keyframes rate-caption {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.9);
  }
}

@keyframes rate-ready {
  40% {
    transform: scale(1.02);
  }
}

.osheet--center .field {
  text-align: right;
}

.osheet--center textarea {
  min-height: 80px;
  resize: vertical;
}

.star-s {
  width: 15px;
  height: 15px;
  fill: var(--bg-soft);
  stroke: var(--star-line);
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.star-s.is-on {
  fill: var(--star);
  stroke: #e28a0b;
}

.stars-s {
  display: inline-flex;
  gap: 1px;
}

/* Trip receipt (order.js): a short summary; the full receipt opens on demand. */
.receipt {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.receipt__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.receipt__ok {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  animation: rate-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.receipt__ok .icon {
  width: 22px;
  height: 22px;
}

.receipt__head h2 {
  font-size: 15px;
  font-weight: 800;
}

.receipt__head p {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.receipt__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-soft);
}

.receipt__route {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
}

.receipt__route .icon {
  flex-shrink: 0;
  color: var(--muted);
}

.receipt__amount {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--green-dark);
}

.receipt__brief {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.receipt__brief .avatar-s {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.receipt__who {
  flex: 1;
  min-width: 0;
}

.receipt__who b {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.receipt__who small {
  display: block;
  overflow: hidden;
  font-size: 11.5px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt__brief .stars-s {
  flex-shrink: 0;
}

.receipt__more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.receipt__more.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.receipt__more-inner {
  min-height: 0;
  overflow: hidden;
}

.receipt__rows {
  margin: 12px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.rrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
}

.rrow dt {
  color: var(--muted-2);
}

.rrow dd {
  margin: 0;
  font-weight: 700;
}

.receipt__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px dashed var(--line-2);
}

.receipt__total span {
  font-size: 13px;
  font-weight: 700;
}

.receipt__total strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--green-dark);
}

.receipt__meta {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.receipt__meta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

.receipt__meta span:first-child {
  color: var(--muted-2);
}

.receipt__print {
  margin-top: 12px;
}

.receipt__print .icon {
  width: 18px;
  height: 18px;
}

.receipt__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--green-dark);
  font-size: 12.5px;
  font-weight: 700;
}

.receipt__chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.receipt__toggle[aria-expanded="true"] .receipt__chevron {
  transform: rotate(180deg);
}

.receipt-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 8px;
}

/* Horizontal strips a mouse can drag (js/app.js initDragStrips). */
@media (hover: hover) and (pointer: fine) {
  .chips,
  .mv-chips,
  .mv-list,
  .cat-row,
  .flow-cities,
  .day-strip {
    cursor: grab;
  }
}

.is-strip-drag {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.is-strip-drag > * {
  pointer-events: none;
}

/* Roles (js/app.js): parts of the page for one side only. */
body:not([data-role="driver"]) [data-role-only="driver"],
body:not([data-role="shipper"]) [data-role-only="shipper"] {
  display: none !important;
}

/* Welcome: first visit, pick «بار دارم» or «راننده هستم». */
.app.is-welcome {
  display: block;
}

.app.is-welcome .side-nav,
.app.is-welcome .bottom-nav {
  display: none;
}

.app.is-welcome .app-main {
  padding-bottom: 0;
}

.view--welcome.is-active {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, var(--green-soft) 0%, var(--bg) 55%);
}

.welcome {
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.welcome__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  animation: rate-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.welcome__brand .logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.welcome__brand .logo-mark svg {
  width: 22px;
  height: 22px;
}

.welcome__title {
  margin-top: 26px;
  font-size: 24px;
  font-weight: 800;
  animation: rate-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.welcome__sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted-2);
  animation: rate-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.welcome__roles {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.role-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: right;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: rate-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.role-card:nth-child(1) {
  animation-delay: 0.16s;
}

.role-card:nth-child(2) {
  animation-delay: 0.24s;
}

.role-card:active {
  transform: scale(0.98);
}

.role-card__art {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.role-card__art svg {
  width: 28px;
  height: 28px;
}

/* The truck faces the direction of travel (left, in RTL). */
.role-card__art--driver svg {
  transform: scaleX(-1);
}

.role-card__art--shipper {
  background: var(--green-soft);
  color: var(--green);
}

.role-card__art--driver {
  background: var(--orange-soft);
  color: #d97a1e;
}

.role-card__text {
  flex: 1;
  min-width: 0;
}

.role-card__text strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.role-card__text small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted-2);
}

.role-card__go {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted-2);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.welcome__note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
  animation: rate-rise 0.5s ease 0.34s both;
}

.welcome__about {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  animation: rate-rise 0.5s ease 0.38s both;
}

@media (hover: hover) and (min-width: 768px) {
  .role-card:hover {
    border-color: var(--green);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
  }

  .role-card:hover .role-card__go {
    background: var(--green);
    color: #fff;
  }
}

/* Profile: switch between the two sides. */
.role-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-dark);
  text-align: right;
}

.role-switch__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--green);
}

.role-switch__text {
  flex: 1;
  min-width: 0;
}

.role-switch__text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.role-switch__text small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* «بارهای من» (js/order.js), also the three latest on the shipper home. */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: right;
}

.order-card:active {
  background: var(--bg-soft);
}

.order-card__art {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 58px;
  height: 46px;
  padding: 6px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--text);
  --vart-bg: var(--bg-soft);
}

.order-card__main {
  flex: 1;
  min-width: 0;
}

.order-card__main strong,
.order-card__main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card__main strong {
  font-size: 14px;
  font-weight: 800;
}

.order-card__main small {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.order-card__side {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: flex-end;
  gap: 6px;
}

.order-card__side b {
  font-size: 12.5px;
  font-weight: 800;
}

.order-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.order-status i {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.order-status i::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  animation: yb-ping 1.8s ease-out infinite;
}

.order-status--wait {
  background: var(--orange-soft);
  color: #c46a14;
}

.order-status--live {
  background: var(--green-soft);
  color: var(--green-dark);
}

.order-status--action {
  background: var(--blue-soft);
  color: var(--blue);
}

.order-status--done {
  background: var(--bg-soft);
  color: var(--muted-2);
}

.order-status--off {
  background: var(--shop-soft);
  color: var(--red);
}

.order-empty {
  padding: 28px 16px;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius);
  text-align: center;
}

.order-empty--compact {
  padding: 20px 16px;
}

.order-empty__art {
  display: block;
  width: 96px;
  height: 43px;
  margin: 0 auto;
  color: var(--muted);
}

.order-empty strong {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 800;
}

.order-empty p {
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--muted-2);
}

/* ========== Driver side (js/driver.js) ========== */

/* Offer / trip status on load cards. */
.load-card__offer:empty {
  display: none;
}

.load-card__offer .order-status {
  font-size: 10.5px;
}

/* Home: availability, active trip, offers waiting for an answer. */
.drv-online {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.drv-online.is-on {
  border-color: rgba(3, 153, 82, 0.25);
  background: var(--green-soft);
}

.drv-online__dot {
  position: relative;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}

.drv-online.is-on .drv-online__dot {
  background: var(--green);
}

.drv-online.is-on .drv-online__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--green);
  border-radius: 50%;
  animation: yb-ping 1.8s ease-out infinite;
}

.drv-online__text {
  flex: 1;
  min-width: 0;
}

.drv-online__text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.drv-online__text small {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
}

.drv-switch {
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: var(--switch-off);
  transition: background-color 0.25s ease;
}

.drv-switch i {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.drv-switch[aria-checked="true"] {
  background: var(--green);
}

.drv-switch[aria-checked="true"] i {
  transform: translateX(-20px);
}

.drv-offers {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: #b86413;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  animation: rate-rise 0.4s ease both;
}

.drv-offers.is-good {
  background: var(--green-soft);
  color: var(--green-dark);
}

.drv-offers span {
  flex: 1;
}

/* Load details. */
.ld-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ld-head__time {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
}

.detail-price--nego small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted-2);
}

.ld-route {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.ld-route__pt {
  display: flex;
  gap: 12px;
}

.ld-route__pt i {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border: 3px solid var(--green);
  border-radius: 50%;
  background: var(--surface);
}

.ld-route__pt--to i {
  border-color: var(--text);
  border-radius: 3px;
}

.ld-route__pt strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.ld-route__pt small {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
}

.ld-route__mid {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 5px;
  padding: 6px 0 6px 0;
  padding-right: 18px;
  border-right: 2px dashed var(--line-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-2);
}

.ld-route__mid .icon {
  transform: scaleX(-1);
}

.ld-shipper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ld-shipper > div {
  flex: 1;
  min-width: 0;
}

.ld-shipper strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.ld-shipper small {
  font-size: 12px;
  color: var(--muted-2);
}

.ld-shipper__star {
  color: var(--star);
}

.ld-shipper__ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}

.ld-shipper__ok .icon {
  width: 14px;
  height: 14px;
}

.ld-offer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  overflow: hidden;
  border-radius: var(--radius);
  animation: rate-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ld-offer > div {
  flex: 1;
  min-width: 0;
}

.ld-offer strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.ld-offer small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.7;
}

.ld-offer > .icon {
  flex-shrink: 0;
}

.ld-offer--wait {
  background: var(--orange-soft);
  color: #a85a10;
}

.ld-offer--ok,
.ld-offer--live {
  background: var(--green-soft);
  color: var(--green-dark);
}

.ld-offer--no {
  background: var(--shop-soft);
  color: #b3372f;
}

.ld-offer--done {
  background: var(--bg-soft);
  color: var(--muted-2);
}

.ld-offer__spinner {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(168, 90, 16, 0.25);
  border-top-color: #d9861c;
  border-radius: 50%;
  animation: ymap-spin 0.9s linear infinite;
}

.ld-offer__bar {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f2a54a, transparent);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: ld-scan 1.6s ease-in-out infinite;
}

.ld-offer__link {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
  color: inherit;
}

.ld-offer__tick {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  animation: rate-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.ld-offer__tick .icon {
  width: 18px;
  height: 18px;
}

.detail-panel--empty {
  margin-top: 0;
  text-align: center;
}

/* Offer sheet: bottom sheet on phones, a centred dialog on wide screens. */
.offer-panel {
  max-height: 88dvh;
  animation: offer-sheet-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  .offer-panel {
    top: 50%;
    right: 50%;
    bottom: auto;
    left: auto;
    width: min(480px, calc(100% - 48px));
    padding: 22px 22px 20px;
    border-radius: 22px;
    transform: translate(50%, -50%);
    animation-name: offer-dialog-in;
  }

  .offer-panel .osheet__handle {
    display: none;
  }
}

@keyframes offer-sheet-in {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}

@keyframes offer-dialog-in {
  from {
    transform: translate(50%, -46%);
    opacity: 0;
  }
}

.offer-panel h3 {
  margin-bottom: 2px;
  font-size: 17px;
  font-weight: 800;
}

.offer-panel__route {
  font-size: 12.5px;
  color: var(--muted-2);
}

.offer-price {
  display: block;
  margin-top: 16px;
}

.offer-price > span:first-child {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
}

.offer-price__box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 0 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.offer-price__box:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(3, 153, 82, 0.12);
}

.offer-price__box input {
  flex: 1;
  min-width: 0;
  height: 58px;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
}

.offer-price__box b {
  font-size: 13px;
  color: var(--muted-2);
}

.offer-price__hint {
  min-height: 22px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
}

.offer-price__hint.is-good {
  color: var(--green-dark);
}

.offer-price__hint.is-warn {
  color: #c46a14;
}

.offer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.offer-chip {
  padding: 8px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.offer-chip.is-on,
.offer-chip[aria-checked="true"] {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.offer-label {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
}

.offer-chips--when {
  margin-top: 8px;
}

.offer-note {
  width: 100%;
  min-height: 72px;
  margin: 16px 0 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  font-size: 14px;
  resize: vertical;
}

.offer-note:focus {
  border-color: var(--green);
  outline: none;
}

/* Trip. */
.trip-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.trip-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

.trip-steps li::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 50%;
  left: -50%;
  height: 2px;
  background: var(--line-2);
}

.trip-steps li:first-child::before {
  display: none;
}

.trip-steps li.is-done::before,
.trip-steps li.is-now::before {
  background: var(--green);
}

.trip-steps span {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
}

.trip-steps .icon {
  width: 15px;
  height: 15px;
}

.trip-steps li.is-done span {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.trip-steps li.is-now {
  color: var(--green-dark);
}

.trip-steps li.is-now span {
  border-color: var(--green);
  color: var(--green-dark);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.trip-now {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.trip-now__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--green-dark);
}

.trip-now__label i {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.trip-now__label i::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  animation: yb-ping 1.8s ease-out infinite;
}

.trip-now strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 900;
}

.trip-now strong small {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted-2);
}

.trip-now p {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

.trip-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.trip-nav__app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.trip-nav__app .icon {
  color: var(--blue);
}

.trip-checks {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.trip-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.trip-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.trip-check__box {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line-2);
  border-radius: 7px;
  color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.trip-check__box .icon {
  width: 15px;
  height: 15px;
}

.trip-check:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
}

.trip-check input:checked + .trip-check__box {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.trip-check input:focus-visible + .trip-check__box {
  box-shadow: 0 0 0 4px rgba(3, 153, 82, 0.2);
}

.trip-hint {
  margin-bottom: 12px;
  font-size: 12.5px;
  text-align: center;
  color: var(--muted-2);
}

.trip-code {
  margin-bottom: 12px;
  text-align: center;
}

.trip-code label {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.trip-code input {
  width: 190px;
  height: 58px;
  margin-top: 8px;
  border: 1.5px solid var(--line-2);
  border-radius: 16px;
  font-family: inherit;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 12px;
  text-align: center;
  outline: none;
}

.trip-code input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(3, 153, 82, 0.12);
}

.trip-code input.is-wrong {
  border-color: var(--red);
  animation: trip-shake 0.4s ease;
}

.trip-code small {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted);
}

.trip-shipper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.trip-shipper > div {
  flex: 1;
  min-width: 0;
}

.trip-shipper small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.trip-shipper strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.trip-load {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.trip-load b {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}

/* Slide to confirm: drag the knob from right to left. */
.slide-confirm {
  --p: 0;
  position: relative;
  height: 58px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--green-soft);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.slide-confirm__fill {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58px;
  border-radius: 16px;
  background: var(--green);
}

.slide-confirm__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 64px;
  font-size: 14px;
  font-weight: 800;
  color: var(--green-dark);
  opacity: calc(1 - var(--p) * 1.4);
  background: linear-gradient(90deg, var(--green-dark) 0%, var(--green-dark) 40%, #5cc28f 50%, var(--green-dark) 60%, var(--green-dark) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slide-shine 2.4s linear infinite;
  pointer-events: none;
}

.slide-confirm__knob {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  color: var(--green);
  cursor: grab;
  touch-action: none;
}

.slide-confirm__knob .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.slide-confirm.is-dragging .slide-confirm__knob {
  cursor: grabbing;
}

.slide-confirm.is-snapping .slide-confirm__knob,
.slide-confirm.is-snapping .slide-confirm__fill {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.3s ease;
}

.slide-confirm.is-nudge .slide-confirm__knob {
  animation: slide-nudge 0.6s ease;
}

.slide-confirm.is-done .slide-confirm__label {
  opacity: 0;
}

.slide-confirm__knob:focus-visible {
  outline: 3px solid rgba(3, 153, 82, 0.4);
  outline-offset: 2px;
}

/* Trip finished. */
.trip-done h2 {
  font-size: 18px;
  font-weight: 800;
  animation: rate-rise 0.4s ease 0.45s both;
}

.trip-done > p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted-2);
  animation: rate-rise 0.4s ease 0.55s both;
}

.trip-earn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--green-soft);
  animation: rate-rise 0.4s ease 0.65s both;
}

.trip-earn span {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
}

.trip-earn strong {
  font-size: 18px;
  font-weight: 900;
  color: var(--green-dark);
}

.trip-rated {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted-2);
  animation: rate-rise 0.4s ease 1.1s both;
}

.trip-returns {
  margin-top: 18px;
  text-align: right;
  animation: rate-rise 0.4s ease 0.8s both;
}

.trip-returns h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
}

.trip-returns h3 .icon {
  color: var(--blue);
}

.trip-return {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: right;
}

.trip-return strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}

.trip-return small {
  font-size: 12px;
  color: var(--muted);
}

.trip-return b {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--green-dark);
}

.trip-done .btn--block {
  margin-top: 8px;
}

/* «سفرهای من». */
.seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 14px;
  background: var(--bg-soft);
}

.seg button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--muted-2);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.seg button[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.seg b {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
}

.drv-stats {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 6px;
}

.drv-stats > div {
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-soft);
}

.drv-stats small {
  display: block;
  font-size: 11.5px;
  color: var(--muted-2);
}

.drv-stats strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 900;
}

.drv-stats > div:first-child strong {
  color: var(--green-dark);
}

.order-card--static .order-card__art {
  color: var(--green);
}

.order-card--static .order-card__art .icon {
  width: 24px;
  height: 24px;
}

@keyframes ld-scan {
  from {
    background-position: -100% 0;
  }

  to {
    background-position: 200% 0;
  }
}

@keyframes trip-shake {
  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

@keyframes slide-shine {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -150% 0;
  }
}

@keyframes slide-nudge {
  30% {
    transform: translateX(-18px);
  }

  60% {
    transform: translateX(-6px);
  }
}

@media (hover: hover) and (min-width: 768px) {
  .trip-nav__app:hover,
  .trip-return:hover {
    border-color: var(--green);
  }

  .offer-chip:hover {
    border-color: var(--green);
  }
}

/* Active order banner on the home screen */

.active-order {
  --vart-bg: #13251d;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  overflow: hidden;
  border-radius: 16px;
  background: #13251d;
  color: #fff;
  text-align: right;
}

.active-order::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--p, 0%);
  height: 3px;
  background: #36c47f;
  transition: width 0.6s ease;
}

.active-order__icon {
  flex: 0 0 52px;
  height: 40px;
  padding: 0 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.active-order__icon .vart {
  height: 100%;
}

.active-order__text {
  min-width: 0;
}

.active-order__text strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.active-order__text small {
  display: block;
  overflow: hidden;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-order__live {
  flex-shrink: 0;
  background: #36c47f;
}

.active-order__live::after {
  border-color: #36c47f;
}

.active-order__go {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  margin-inline-start: auto;
  font-size: 12px;
  font-weight: 800;
  color: #8fe3b9;
}

/* Confirmation sheet */

.confirm-panel {
  max-width: 440px;
  margin: 0 auto;
  padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.confirm-panel h3 {
  font-size: 16px;
  font-weight: 800;
}

.confirm-panel p {
  margin: 6px 0 18px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted-2);
}

.confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@keyframes yb-radar {
  from {
    opacity: 0.9;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2.2);
  }
}

@keyframes yb-ping {
  from {
    opacity: 0.9;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(3);
  }
}

@keyframes yb-slide {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-300%);
  }
}

@keyframes yb-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@keyframes offer-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes offer-out {
  to {
    opacity: 0;
    transform: translate3d(-24px, 0, 0);
  }
}

@keyframes mk-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes star-pop {
  50% {
    transform: scale(1.18);
  }
}

@media (hover: hover) and (min-width: 768px) {
  .flow-search__results button:hover,
  .act-btn:hover,
  .stepper__btn:hover {
    background: var(--green-soft);
  }

  .city-chip:hover,
  .opt-chip:hover,
  .day-btn:hover,
  .slot-btn:hover {
    border-color: var(--green);
  }

  .vehicle-card:hover,
  .pay-opt:not(:disabled):hover,
  .flow-point:not(:disabled):hover {
    border-color: #9fd9bb;
  }
}

@media (min-width: 768px) {
  .vehicle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-map.is-preview {
    height: 260px;
  }
}

@media (min-width: 1024px) {
  .view--flow.is-active {
    height: calc(100dvh - 120px);
    min-height: 560px;
  }

  .order-layout {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
  }

  .order-map {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
  }

  .order-sheet,
  .order-layout.is-tall .order-sheet {
    position: static;
    grid-column: 1;
    grid-row: 1;
    max-height: none;
    padding-top: 18px;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }

  .osheet__handle {
    display: none;
  }

  .flow-map__sheet {
    max-width: 560px;
    width: 100%;
    margin: -18px auto 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view--flow *,
  .view--flow *::before,
  .view--flow *::after,
  .active-order *,
  .active-order::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .app-body * {
    visibility: hidden;
  }

  .receipt,
  .receipt * {
    visibility: visible;
  }

  .receipt {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    border: 0;
  }

  /* The printed receipt is always the full one. */
  .receipt__more {
    grid-template-rows: 1fr !important;
    opacity: 1 !important;
  }

  .receipt__toggle,
  .receipt__print {
    display: none !important;
  }
}

/* MapLibre ships its own button hovers; neutralise them on phones and touch
   screens. The .app-body prefix outranks maplibre-gl.css, which loads later. */
@media (max-width: 767.98px), (hover: none) {
  .app-body .maplibregl-ctrl button:not(:disabled):hover,
  .app-body .maplibregl-popup-close-button:hover {
    background-color: transparent;
  }
}

/* Desktop */

@media (min-width: 768px) {
  .view {
    padding: 0 24px 32px;
  }

  .hero-slide {
    min-height: 320px;
  }

  .hero-slide__overlay {
    padding: 28px 28px 68px;
  }

  .hero-slide__title {
    font-size: 27px;
  }

  .hero-slide__text {
    font-size: 14px;
  }

  .hero-controls {
    right: 28px;
    left: 28px;
    bottom: 22px;
  }

  .hero-count {
    margin-inline-start: 0;
  }

  .hero-arrows {
    display: flex;
    margin-inline-start: auto;
  }

  .home-loc strong {
    font-size: 15px;
  }

  .home-hello__text strong {
    font-size: 14px;
  }

  .quick-item {
    font-size: 12px;
  }

  .quick-item__icon {
    width: 52px;
    height: 52px;
  }

  .wallet-card > div {
    flex: 1 1 auto;
  }

  .ship-card {
    grid-template-columns: auto minmax(72px, max-content) minmax(0, 1fr) auto;
    grid-template-areas: "route cities meta status";
  }

  .product-grid,
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .map-stage {
    min-height: 560px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
  }
}

@media (min-width: 1024px) {
  .app-body {
    background: var(--bg-page);
  }

  .app {
    display: grid;
    grid-template-columns: var(--side) minmax(0, 1fr);
    grid-template-areas: "side main";
    max-width: 1280px;
    margin: 0 auto;
    min-height: 100dvh;
  }

  .side-nav {
    grid-area: side;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100dvh;
    background: var(--surface);
    border-left: 1px solid var(--line);
    padding: 20px 16px 24px;
  }

  .side-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 0 8px;
  }

  .side-nav__brand span {
    font-size: 20px;
    font-weight: 800;
  }

  .side-nav nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
  }

  .side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 12px;
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 600;
    text-align: right;
  }

  .side-link.is-active {
    background: var(--green-soft);
    color: var(--green);
  }

  .side-link--fab {
    background: var(--green);
    color: #fff;
    justify-content: center;
    margin: 8px 0 16px;
  }

  .side-link--fab.is-active {
    background: var(--green-dark);
    color: #fff;
  }

  .side-nav__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: var(--bg-soft);
  }

  .side-nav__user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  }

  .side-nav__user strong {
    display: block;
    font-size: 13px;
  }

  .side-nav__user span {
    font-size: 11px;
    color: var(--muted);
  }

  .bottom-nav {
    display: none;
  }

  .app-main {
    grid-area: main;
    padding: 12px 28px 40px;
    min-width: 0;
  }

  .app.is-detail .app-main {
    padding-bottom: 40px;
  }

  .hero-slide {
    min-height: 380px;
  }

  .hero-slide__overlay {
    padding: 36px 36px 80px;
  }

  .hero-slide__title {
    font-size: 32px;
  }

  .hero-controls {
    right: 36px;
    left: 36px;
    bottom: 26px;
  }
}

/* The route card needs ~300px beside the copy, so it waits for wide screens. */
@media (min-width: 1200px) {
  .hero-slide__overlay {
    padding-inline-end: 320px;
  }

  .hero-route {
    position: absolute;
    z-index: 3;
    top: 24px;
    left: 24px;
    display: block;
    width: 264px;
    padding: 14px 14px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 18, 15, 0.5);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    animation: hero-card-in 0.9s var(--hero-ease) 0.5s both;
  }
}

@media (min-width: 1024px) {
  .quick-panel {
    padding: 18px 12px 16px;
  }

  .ship-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .service-panel {
    padding: 20px 16px 16px;
  }

  .load-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .shop-list {
    grid-template-columns: 1fr 1fr;
  }

  .detail-hero {
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .detail-panel {
    margin-top: 0;
    border-radius: var(--radius-lg);
    padding: 24px 0 0;
    background: transparent;
    box-shadow: none;
  }

  .app.is-detail .detail-bar {
    position: static;
    display: flex;
    max-width: 520px;
    padding: 16px 0 0;
    border: 0;
    background: transparent;
    margin-top: 8px;
  }

  .view--flush.is-active {
    min-height: calc(100dvh - 80px);
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
  }

  .toast {
    bottom: 24px;
  }

  .sticky-cta {
    position: static;
  }
}

@media (min-width: 1280px) {
  .app {
    max-width: 1360px;
  }

  .load-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid,
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== Shared page parts (account, chat, wallet, support, search) ========== */

.pg {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 12px;
}

.pg--center {
  align-items: stretch;
  text-align: center;
}

.pg-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pg-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pg-card__head .pg-card__title {
  margin-bottom: 0;
}

.pg-card__title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 14.5px;
  font-weight: 800;
}

.pg-card__title small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.pg-card__sub {
  margin: 16px 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.pg-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted-2);
}

.pg-hint .icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green);
}

.pg-hint b {
  color: var(--text);
}

.pg-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
}

/* Action bar kept in view at the bottom of long forms (phones). */
.pg-bar {
  position: sticky;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  display: flex;
  gap: 10px;
  margin: 4px -16px 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.app.is-detail .pg-bar {
  bottom: 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.pg-bar .btn {
  flex: 1;
}

.pg-bar .btn--ghost {
  flex: 0 0 auto;
}

.pg-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.pg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 16px;
  text-align: center;
}

.pg-empty__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
}

.pg-empty__icon .icon {
  width: 28px;
  height: 28px;
}

.pg-empty strong {
  font-size: 15px;
  font-weight: 800;
}

.pg-empty p {
  max-width: 340px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted-2);
}

.pg-empty .btn {
  margin-top: 10px;
}

.pg-empty--page {
  min-height: 60dvh;
  justify-content: center;
}

.pg-empty__code {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: var(--green);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field label small {
  font-weight: 500;
  color: var(--muted);
}

.field-error {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
}

.field-hint {
  font-size: 11.5px;
  color: var(--muted);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid,
.auth-field:has(.is-invalid) {
  border-color: var(--red);
}

.is-shake {
  animation: yb-shake 0.4s ease;
}

@keyframes yb-shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

.btn-spin {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: yb-spin 0.7s linear infinite;
}

@keyframes yb-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn--sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 12.5px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.link-btn--danger {
  color: var(--red);
}

.opt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.8;
  cursor: pointer;
}

.check-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-row a {
  color: var(--green);
  font-weight: 700;
}

.check-row__box {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid var(--line-2);
  border-radius: 7px;
  color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.check-row__box .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

.check-row input:checked + .check-row__box {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.check-row input:focus-visible + .check-row__box {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.input-lock {
  position: relative;
}

.input-lock input {
  width: 100%;
  background: var(--bg-soft);
  color: var(--muted-2);
}

.input-lock .icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--muted);
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.pg-card__title + .switch-row,
.ui-title + .switch-row {
  border-top: 0;
  padding-top: 0;
}

.switch-row__text {
  flex: 1;
  min-width: 0;
}

.switch-row__text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}

.switch-row__text small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.segmented--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-list--flat {
  gap: 0;
  margin: -6px -8px;
}

.menu-item__label small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

.menu-item--danger,
.menu-item--danger .menu-item__icon {
  color: var(--red);
}

.menu-item--danger .menu-item__icon {
  background: var(--shop-soft);
}

.app-version {
  margin: 8px 0 4px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

.muted-note {
  font-size: 11px;
  color: var(--muted);
}

.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--orange-soft);
  color: #b86413;
  text-align: right;
}

.status-banner.is-wait {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-banner.is-ok {
  background: var(--green-soft);
  color: var(--green-dark);
}

.status-banner__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
}

.status-banner__text {
  flex: 1;
  min-width: 0;
}

.status-banner__text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}

.status-banner__text small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  opacity: 0.85;
}

.nav-item__icon {
  position: relative;
  display: grid;
}

.nav-item__icon .badge {
  top: -5px;
  left: -9px;
}

.badge[hidden] {
  display: none !important;
}

.side-link__badge {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-inline-start: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.avatar-s {
  --av: var(--green);
}

.avatar-s--txt {
  background: color-mix(in srgb, var(--av) 14%, var(--surface));
  color: var(--av);
}

.avatar-s--sm {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.avatar-s--xl {
  width: 76px;
  height: 76px;
  font-size: 28px;
}

.avatar-s--support {
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
}

.avatar-s--lg.avatar-s--support .icon {
  width: 32px;
  height: 32px;
}

.wallet-card__link {
  flex: 1 1 100%;
  min-width: 0;
}

.wallet-card__link span {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
}

.wallet-card__link strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
}

/* ---- General sheet (js/ui.js): bottom sheet on phones, dialog on wide screens */

body.has-sheet {
  overflow: hidden;
}

.ui-sheet .sheet__backdrop {
  animation: ui-fade 0.2s ease;
}

.ui-panel {
  max-height: 88dvh;
  animation: offer-sheet-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ui-fade {
  from {
    opacity: 0;
  }
}

@media (min-width: 768px) {
  .ui-panel {
    top: 50%;
    right: 50%;
    bottom: auto;
    left: auto;
    width: min(480px, calc(100% - 48px));
    padding: 22px 22px 20px;
    border-radius: 22px;
    transform: translate(50%, -50%);
    animation-name: offer-dialog-in;
  }

  .ui-panel--small {
    width: min(400px, calc(100% - 48px));
  }

  .ui-panel--filters {
    width: min(540px, calc(100% - 48px));
  }

  .ui-panel .osheet__handle {
    display: none;
  }
}

.ui-title {
  font-size: 17px;
  font-weight: 800;
}

.sheet__panel h3.ui-title {
  margin-bottom: 4px;
}

.ui-text {
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted-2);
}

.ui-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted-2);
}

.ui-note .icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange);
}

.ui-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 10px;
  margin-top: 16px;
}

.ui-confirm {
  text-align: center;
}

.ui-confirm .ui-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reason-list {
  display: grid;
  gap: 8px;
}

.reason {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  text-align: right;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.reason__radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
}

.reason[aria-checked="true"] {
  border-color: var(--green);
  background: var(--green-soft);
}

.reason[aria-checked="true"] .reason__radio {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 3px var(--surface);
}

.reason-text {
  margin: 12px 0 0;
}

.reason-text textarea {
  min-height: 72px;
}

/* ========== Sign-in and sign-up (js/account.js) ========== */

.auth {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth__art {
  width: 150px;
  margin: 26px auto 0;
  color: var(--green);
  --vart-bg: transparent;
  animation: rate-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

.auth__art .vart {
  width: 100%;
  height: auto;
}

.auth .welcome__title {
  margin-top: 18px;
}

.auth-form {
  width: 100%;
  max-width: 380px;
  margin-top: 22px;
  text-align: right;
  animation: rate-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.auth-form--wide {
  max-width: 460px;
}

.auth-form > .btn {
  margin-top: 6px;
}

.auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(3, 153, 82, 0.12);
}

.auth-field .icon {
  color: var(--muted);
}

.auth-field input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: left;
}

.auth-field input::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.auth-legal {
  max-width: 360px;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted-2);
}

.auth-legal a {
  font-weight: 700;
  color: var(--green);
}

.auth-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.auth-phone {
  color: var(--text);
  unicode-bidi: isolate;
}

.otp {
  position: relative;
  width: 100%;
  margin-top: 4px;
}

.otp__input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
  letter-spacing: 40px;
  opacity: 0.01;
}

.otp__cells {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  direction: ltr;
}

.otp__cells span {
  display: grid;
  place-items: center;
  height: 58px;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  font-size: 24px;
  font-weight: 800;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.otp__cells span.is-filled {
  border-color: var(--green);
}

.otp__cells span.is-current {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(3, 153, 82, 0.14);
}

.otp.is-error .otp__cells span {
  border-color: var(--red);
}

.otp__error {
  margin-top: 8px;
  text-align: center;
}

.auth-form #otpSubmit {
  margin-top: 16px;
}

.auth-resend {
  min-height: 36px;
  margin-top: 12px;
}

.auth-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted-2);
}

.auth-demo {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 380px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--muted-2);
  font-size: 12px;
  text-align: right;
}

.auth-demo span {
  flex: 1;
}

.auth-demo b {
  color: var(--text);
  letter-spacing: 1px;
}

.auth-demo small {
  font-weight: 800;
  color: var(--green);
}

.auth-label {
  margin: 8px 0 -14px;
  font-size: 13px;
  font-weight: 700;
}

.auth-roles .role-card {
  position: relative;
}

.role-card__check {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.role-card__check .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

.role-card[aria-checked="true"] {
  border-color: var(--green);
  background: var(--green-soft);
}

.role-card[aria-checked="true"] .role-card__check {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.auth-invite {
  margin: 14px 0 8px;
  font-size: 13px;
}

.auth-invite summary {
  width: fit-content;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
  list-style: none;
}

.auth-invite summary::-webkit-details-marker {
  display: none;
}

.auth-invite .field {
  margin: 10px 0 0;
}

.auth .welcome__note {
  text-align: center;
}

/* ========== Driver onboarding (js/account.js) ========== */

.ob-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  list-style: none;
}

.ob-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.ob-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line-2);
  transform: translateX(-3px);
  z-index: 0;
}

.ob-steps li.is-done:not(:last-child)::after {
  background: var(--green);
}

.ob-steps__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  font-size: 13px;
}

.ob-steps__dot .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
}

.ob-steps li.is-current {
  color: var(--text);
}

.ob-steps li.is-current .ob-steps__dot {
  border-color: var(--green);
  color: var(--green);
}

.ob-steps li.is-done .ob-steps__dot {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.ob-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ob-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ob-type__art {
  width: 100%;
  max-width: 76px;
  color: var(--text);
  --vart-bg: var(--surface);
}

.ob-type__art .vart {
  width: 100%;
  height: auto;
}

.ob-type strong {
  font-size: 12px;
  font-weight: 800;
}

.ob-type small {
  font-size: 10.5px;
  color: var(--muted);
}

.ob-type[aria-checked="true"] {
  border-color: var(--green);
  background: var(--green-soft);
  --vart-bg: var(--green-soft);
}

.ob-type[aria-checked="true"] .ob-type__art {
  color: var(--green-dark);
  --vart-bg: var(--green-soft);
}

.ob-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 14px;
}

.ob-models:empty {
  display: none;
}

/* Plate editor: the yellow (commercial) Iranian plate with inputs. */
.plate-edit {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 340px;
  height: 58px;
  margin: 0 auto;
  border: 2.5px solid #1b1b1b;
  border-radius: 10px;
  background: #f6c945;
  color: #1b1b1b;
  overflow: hidden;
}

.plate-edit__flag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  width: 30px;
  padding: 4px 0;
  background: #1f4fa3;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.plate-edit__flag i {
  width: 16px;
  height: 10px;
  background: linear-gradient(#239f40 0 33%, #fff 33% 66%, #da0000 66%);
}

.plate-edit__in {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #1b1b1b;
  font-family: inherit;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

.plate-edit__in::placeholder {
  color: rgba(27, 27, 27, 0.35);
}

.plate-edit__in:focus {
  background: rgba(255, 255, 255, 0.45);
}

.plate-edit__in--2 {
  width: 52px;
}

.plate-edit__in--3 {
  flex: 1;
}

.plate-edit__letter {
  width: 58px;
  border: 0;
  outline: none;
  background: transparent;
  color: #1b1b1b;
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  text-align-last: center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.plate-edit__letter:focus {
  background: rgba(255, 255, 255, 0.45);
}

.plate-edit__region {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 2.5px solid #1b1b1b;
}

.plate-edit__region small {
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.plate-edit__region .plate-edit__in {
  height: 32px;
  font-size: 20px;
}

.ob-progress {
  height: 6px;
  margin: 12px 0 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}

.ob-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 0.4s ease;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.doc-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1.5px dashed var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.doc-tile.has-file {
  border-style: solid;
  border-color: rgba(3, 153, 82, 0.4);
}

.doc-tile__pick {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  color: var(--green);
}

.doc-tile__pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc-tile__add .icon {
  width: 30px;
  height: 30px;
}

.doc-tile__text {
  padding: 8px 10px 10px;
}

.doc-tile__text strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
}

.doc-tile__text small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.doc-tile.has-file .doc-tile__text small {
  color: var(--green-dark);
  font-weight: 700;
}

.doc-tile__ok {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.doc-tile__ok .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
}

.veh-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-areas: "art text" "plate plate";
  align-items: center;
  gap: 12px;
}

.veh-card__art {
  grid-area: art;
  padding: 8px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--text);
  --vart-bg: var(--bg-soft);
}

.veh-card__art .vart {
  width: 100%;
  height: auto;
}

.veh-card__text {
  grid-area: text;
  min-width: 0;
}

.veh-card__text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.veh-card__text small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted-2);
}

.veh-card .plate {
  grid-area: plate;
  justify-self: start;
}

.doc-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.doc-thumb {
  margin: 0;
}

.doc-thumb img,
.doc-thumb__missing {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-soft);
  color: var(--muted);
}

.doc-thumb figcaption {
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted-2);
  text-align: center;
}

.ob-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px 6px;
}

.ob-status__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  animation: rate-rise 0.5s ease both;
}

.ob-status__icon .icon {
  width: 36px;
  height: 36px;
}

.ob-status.is-ok .ob-status__icon {
  background: var(--green-soft);
  color: var(--green);
}

.ob-status h2 {
  font-size: 18px;
  font-weight: 800;
}

.ob-status p {
  max-width: 400px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted-2);
}

.ob-timeline {
  margin: 8px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: right;
}

.doc-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-row img,
.doc-row__missing {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 56px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-soft);
  color: var(--muted);
}

.doc-row > span:not(.order-status) {
  flex: 1;
  min-width: 0;
}

.doc-row strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.doc-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* ========== Profile, account, rewards (js/account.js) ========== */

.profile-head > div {
  min-width: 0;
}

.profile-photo {
  position: relative;
  flex-shrink: 0;
  border-radius: 50%;
}

.profile-photo__edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.profile-photo__edit .icon {
  width: 14px;
  height: 14px;
}

.profile-phone {
  font-size: 12.5px;
  color: var(--muted-2);
  text-align: right;
}

.profile-meta {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-dark);
}

.acc-photo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.acc-photo__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.acc-company {
  margin-top: 14px;
}

.rw-hero {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0b7a45, var(--green) 60%, #36c47f);
  color: #fff;
  overflow: hidden;
}

.rw-hero__top {
  display: flex;
  justify-content: space-between;
}

.rw-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.rw-level--silver {
  background: rgba(230, 236, 240, 0.28);
}

.rw-level--gold {
  background: rgba(255, 207, 112, 0.35);
}

.rw-hero__points {
  display: block;
  margin-top: 14px;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
}

.rw-hero__points small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}

.rw-bar {
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.rw-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.rw-hero p {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.9;
}

.rw-options {
  display: grid;
  gap: 8px;
}

.rw-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.rw-option__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: #d97a1e;
}

.rw-option > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.rw-option strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}

.rw-option small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.rw-invite p {
  margin: -4px 0 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted-2);
}

.rw-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 8px 8px 14px;
  border: 1.5px dashed var(--green);
  border-radius: 14px;
  background: var(--green-soft);
}

.rw-code b {
  padding-right: 6px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--green-dark);
}

.rw-ways,
.rw-history {
  display: grid;
  gap: 2px;
  padding: 0;
  list-style: none;
}

.rw-ways li,
.rw-history li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.rw-ways li:last-child,
.rw-history li:last-child {
  border-bottom: 0;
}

.rw-ways b,
.rw-history b {
  font-weight: 800;
  color: var(--green-dark);
}

.rw-history strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.rw-history small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* ========== Notifications (js/notify.js) ========== */

.nt-day {
  margin: 8px 2px -2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.nt-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.nt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-top: 1px solid var(--line);
  text-align: right;
}

.nt:first-child {
  border-top: 0;
}

.nt.is-unread {
  background: color-mix(in srgb, var(--green-soft) 55%, var(--surface));
}

.nt__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--muted-2);
}

.nt__icon .icon {
  width: 20px;
  height: 20px;
}

.nt__icon--good {
  background: var(--green-soft);
  color: var(--green);
}

.nt__icon--warn {
  background: var(--orange-soft);
  color: #c46a14;
}

.nt__text {
  flex: 1;
  min-width: 0;
}

.nt__text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.6;
}

.nt__text small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted-2);
  overflow-wrap: anywhere;
}

.nt__time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.nt__dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* In-app banner: slides down from the top. */
.nbanner {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: 8px;
  left: 8px;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-120%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.nbanner.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: none;
}

.nbanner__card {
  display: flex;
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.nbanner__main {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  text-align: right;
}

.nbanner__avatar {
  width: 40px;
  height: 40px;
}

.nbanner__text {
  flex: 1;
  min-width: 0;
}

.nbanner__text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}

.nbanner__text small {
  display: -webkit-box;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-2);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.nbanner__close {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-inline-end: 6px;
  border-radius: 12px;
  color: var(--muted);
}

/* ========== Messages (js/chat.js) ========== */

.msg-list {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.msg-card {
  align-items: center;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.msg-list .msg-card:first-child {
  border-top: 0;
}

.msg-card .avatar-s {
  width: 48px;
  height: 48px;
}

.msg-card__main {
  flex: 1;
  min-width: 0;
}

.msg-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.msg-card__top strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-card__top time {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted);
}

.msg-card__ctx {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  font-size: 11.5px;
  color: var(--green-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-card__bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.msg-card__last {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 12.5px;
  color: var(--muted-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-card.is-unread .msg-card__last {
  font-weight: 700;
  color: var(--text);
}

.msg-card__typing {
  color: var(--green);
  font-weight: 700;
}

.msg-card--support {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.unread {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
}

/* Conversation: header, scrolling messages, composer. */
.chat {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: var(--bg-soft);
}

.chat-head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.chat-head .avatar-s {
  width: 40px;
  height: 40px;
}

.chat-head__text {
  flex: 1;
  min-width: 0;
}

.chat-head__text strong {
  display: block;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-head__text small {
  display: block;
  overflow: hidden;
  font-size: 11.5px;
  color: var(--muted-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-head__typing {
  color: var(--green);
  font-weight: 700;
}

.chat-body {
  flex: 1;
  min-height: 0;
  padding: 12px 12px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#chatBubbles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-day {
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
}

.chat-day span {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  box-shadow: var(--shadow);
}

/* RTL: the other side on the right (start), mine on the left (end). */
.bubble {
  align-self: flex-start;
  max-width: min(80%, 460px);
  padding: 8px 12px 6px;
  border-radius: 16px 16px 16px 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: bubble-in 0.22s ease both;
}

.bubble.is-mine {
  align-self: flex-end;
  border-radius: 16px 16px 6px 16px;
  background: var(--green);
  color: #fff;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.bubble p {
  font-size: 13.5px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.bubble__photo {
  max-width: 220px;
  margin-bottom: 6px;
  border-radius: 10px;
}

.bubble__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}

.bubble.is-mine .bubble__meta {
  color: rgba(255, 255, 255, 0.8);
}

.bubble__ticks {
  width: 16px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bubble__ticks.is-read {
  color: #d3f6e3;
}

.bubble--system {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  max-width: 92%;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: none;
  font-size: 12px;
  line-height: 1.7;
}

.bubble--system .icon {
  flex-shrink: 0;
}

.bubble--typing {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
}

.bubble--typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing-dot 1.2s ease-in-out infinite;
}

.bubble--typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.bubble--typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chat-foot {
  flex-shrink: 0;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.qr-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.qr-strip::-webkit-scrollbar {
  display: none;
}

.qr {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat-compose textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  outline: none;
}

.chat-compose textarea:focus {
  border-color: var(--green);
  background: var(--surface);
}

.chat-send {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.chat-send .icon {
  transform: scaleX(-1);
}

.chat-send:disabled {
  opacity: 0.4;
}

.chat-closed {
  padding: 8px 4px;
  font-size: 12.5px;
  text-align: center;
  color: var(--muted-2);
}

.ticket-card {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.ticket-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ticket-card strong {
  font-size: 13.5px;
  font-weight: 800;
}

.ticket-card small {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}

.call-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.call-sheet h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.call-sheet p {
  margin-bottom: 8px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted-2);
}

.call-sheet .btn {
  width: 100%;
}

/* ========== Wallet (js/wallet.js) ========== */

.wl-hero {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0b7a45, var(--green) 60%, #36c47f);
  color: #fff;
  overflow: hidden;
}

.wl-hero small {
  font-size: 12.5px;
  opacity: 0.9;
}

.wl-hero strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
  font-size: 30px;
  font-weight: 900;
}

.wl-hero strong span {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.9;
}

.wl-hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.wl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.wl-btn--ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.wl-hero__mark {
  position: absolute;
  top: -18px;
  left: -18px;
  opacity: 0.12;
}

.wl-hero__mark .icon {
  width: 130px;
  height: 130px;
}

.wl-earn__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wl-earn__grid > div {
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-soft);
}

.wl-earn__grid small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.wl-earn__grid strong {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 800;
}

.wl-earn__grid .is-good {
  color: var(--green-dark);
}

.wl-sheba {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: right;
}

.pg-card__title + .wl-sheba {
  margin-top: 0;
}

.wl-sheba > .icon:first-child {
  color: var(--green);
}

.wl-sheba > span {
  flex: 1;
  min-width: 0;
}

.wl-sheba strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.wl-sheba small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted-2);
  text-align: right;
}

.tx-list {
  display: grid;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  list-style: none;
  overflow: hidden;
}

.tx {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.tx:first-child {
  border-top: 0;
}

.tx__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.tx__icon--in {
  background: var(--green-soft);
  color: var(--green);
}

.tx__icon--out {
  background: var(--bg-soft);
  color: var(--muted-2);
}

.tx__icon--off {
  background: var(--shop-soft);
  color: var(--red);
}

.tx__text {
  flex: 1;
  min-width: 0;
}

.tx__text strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx__text small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.tx__side {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: flex-end;
  gap: 4px;
}

.tx__amount {
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
}

.tx__amount--in {
  color: var(--green-dark);
}

.tx__amount--muted {
  color: var(--muted);
  font-weight: 700;
}

.gw-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.gw-info > .icon {
  flex-shrink: 0;
  color: var(--green);
}

.gw-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}

.gw-info small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted-2);
}

.pay-topup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12.5px;
  font-weight: 800;
}

/* Payment gateway stand-in: deliberately plain, like a bank page. */
.view.is-active[data-view="pay"] {
  min-height: 100dvh;
  padding: 24px 16px;
  background: var(--bg-page);
}

.gw {
  max-width: 440px;
  margin: 0 auto;
}

.gw-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gw-head__lock {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1f4fa3;
  color: #fff;
}

.gw-head strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.gw-head small {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
}

.gw-card {
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.gw-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.gw-row span {
  color: var(--muted-2);
}

.gw-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #c46a14;
}

.gw-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 14px 2px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted-2);
}

.gw-note .icon {
  flex-shrink: 0;
  margin-top: 3px;
}

.gw-actions {
  display: grid;
  gap: 10px;
}

.gw-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
}

.pay-result {
  align-items: center;
  padding-top: 32px;
}

.pay-result h2 {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 800;
}

.pay-result__x {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--shop-soft);
  color: var(--red);
}

.pay-result__x .icon {
  width: 32px;
  height: 32px;
  stroke-width: 2.2;
}

.pay-result__amount {
  font-size: 22px;
  font-weight: 900;
}

.pay-result.is-ok .pay-result__amount {
  color: var(--green-dark);
}

.pay-result__rows {
  width: 100%;
  max-width: 400px;
  margin: 8px 0 0;
  padding: 4px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: right;
}

.pay-result__rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.pay-result__rows div:last-child {
  border-bottom: 0;
}

.pay-result__rows dt {
  color: var(--muted-2);
}

.pay-result__rows dd {
  font-weight: 700;
}

.pay-result__text {
  max-width: 360px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted-2);
}

.pay-result .pg-actions {
  width: 100%;
  max-width: 400px;
}

.iban {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
}

.iban:focus-within {
  border-color: var(--green);
}

.iban span {
  font-weight: 800;
  color: var(--muted-2);
}

.iban input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.iban-bank {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.iban-bank.is-ok {
  color: var(--green-dark);
}

.iban-bank.is-bad {
  color: var(--red);
}

/* ========== Support (js/support.js) ========== */

.help-hero {
  padding: 18px 16px 14px;
  border-radius: 20px;
  background: var(--green-soft);
}

.help-hero h2 {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 800;
  color: var(--green-dark);
}

.help-search {
  margin-bottom: 0;
  background: var(--surface);
}

.help-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.help-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: right;
}

.help-tile__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border-radius: 12px;
}

.help-tile__icon--green {
  background: var(--green-soft);
  color: var(--green);
}

.help-tile__icon--blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.help-tile__icon--orange {
  background: var(--orange-soft);
  color: #d97a1e;
}

.help-tile__icon--purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.help-tile strong {
  font-size: 13.5px;
  font-weight: 800;
}

.help-tile small {
  font-size: 11.5px;
  color: var(--muted);
}

.faq-cat__title {
  margin: 10px 2px 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted-2);
}

.faq {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq__chev {
  flex-shrink: 0;
  color: var(--muted);
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.faq[open] .faq__chev {
  transform: rotate(-90deg);
}

.faq p {
  padding: 0 14px 14px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted-2);
}

.tickets {
  margin-top: 4px;
}

.ticket-row .order-card__art {
  color: var(--green);
}

.tk-photo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tk-photo img {
  width: 96px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.sheet__panel .opt-chips {
  margin: 4px 0 12px;
}

/* Emergency sheet. */
.sos {
  text-align: center;
}

.sos__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--shop-soft);
  color: var(--red);
}

.sos__icon .icon {
  width: 28px;
  height: 28px;
}

.sos__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.sos__call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-soft);
}

.sos__call strong {
  font-size: 13.5px;
  font-weight: 800;
}

.sos__call small {
  font-size: 18px;
  font-weight: 900;
}

.sos__call--red {
  background: var(--shop-soft);
  color: var(--red);
}

.sos__call--blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.sos__call--orange {
  background: var(--orange-soft);
  color: #c46a14;
}

.sos__call--green {
  background: var(--green-soft);
  color: var(--green-dark);
}

.sos .btn {
  margin-top: 8px;
}

.trip-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.trip-sos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--shop-soft);
  color: var(--red);
  font-size: 12.5px;
  font-weight: 800;
}

/* Delivery code (order.js). */
.dcode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1.5px dashed rgba(3, 153, 82, 0.45);
  border-radius: 14px;
  background: var(--green-soft);
}

.dcode__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-dark);
}

.dcode__digits {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--green-dark);
}

.dcode--big {
  flex-wrap: wrap;
  justify-content: center;
  margin: 4px 0 12px;
  padding: 14px;
  text-align: center;
}

.dcode--big .dcode__label {
  flex-basis: 100%;
  justify-content: center;
}

.dcode--big .dcode__digits {
  font-size: 34px;
  letter-spacing: 12px;
}

.dcode--big small {
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted-2);
}

.cancel-reason {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.offer-card__note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

.offer-card__note .icon {
  flex-shrink: 0;
  margin-top: 3px;
}

.trip-earn {
  flex-wrap: wrap;
  gap: 4px 12px;
}

.trip-earn small {
  flex-basis: 100%;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green-dark);
  opacity: 0.85;
}

/* ========== باریابی (js/search.js) ========== */

.sr-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 10px;
}

.sr-count {
  flex: 1;
  font-size: 13px;
  font-weight: 800;
}

.sr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 700;
}

.sr-btn b {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 10.5px;
}

.sr-active {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.sr-active:empty {
  display: none;
}

.sr-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}

.sr-pill .icon {
  width: 14px;
  height: 14px;
}

.sr-saved {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.sr-saved__title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-inline-end: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted-2);
}

.sr-saved__item {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.sr-saved__item > button:first-child {
  padding: 5px 10px 5px 4px;
}

.sr-saved__x {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--muted);
}

.sr-saved__x .icon {
  width: 14px;
  height: 14px;
}

.sr-notify {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--blue-soft);
}

.sr-notify__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--blue);
}

.sr-notify__text {
  flex: 1;
  min-width: 0;
}

.sr-notify__text strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
}

.sr-notify__text small {
  display: block;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

.f-label {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.ui-panel--filters .switch-row {
  margin-top: 4px;
}

.tag--new {
  background: var(--blue-soft);
  color: var(--blue);
}

@media (hover: hover) and (min-width: 768px) {
  .nt:hover,
  .msg-card:hover,
  .tx:hover {
    background: var(--bg-soft);
  }

  .help-tile:hover,
  .ob-type:hover,
  .reason:hover,
  .faq summary:hover {
    border-color: var(--green);
  }

  .qr:hover,
  .sr-btn:hover {
    border-color: var(--green);
    color: var(--green-dark);
  }
}

@media (min-width: 768px) {
  .help-contact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .doc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ob-types {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .pg-bar {
    bottom: 0;
  }
}

@media (min-width: 1024px) {
  .pg-bar {
    position: static;
    margin: 4px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .pg-bar .btn--block {
    max-width: 360px;
    margin-inline-start: auto;
  }

  .chat {
    height: calc(100dvh - 60px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .view.is-active[data-view="chat"] {
    padding-top: 12px;
  }

  .nbanner {
    right: auto;
    left: 24px;
    top: 20px;
    width: 400px;
  }
}

@media (max-width: 380px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .ob-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wl-earn__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble,
  .nbanner,
  .ui-panel,
  .is-shake {
    animation: none !important;
    transition: none !important;
  }
}

/* ========== Dark theme (js/theme.js sets <html data-theme>) ========== */
/* Neutral grays, like a system dark mode. Green stays an accent only
   (buttons, icons, active text and borders), never a background tint. */

html[data-theme="dark"] {
  color-scheme: dark;
  --green: #0aa25a;
  --green-dark: #34c77b;
  --green-soft: #26282b;
  --text: #ececee;
  --muted: #8e8e93;
  --muted-2: #b1b1b6;
  --bg: #121212;
  --bg-soft: #232325;
  --bg-page: #0b0b0b;
  --surface: #1c1c1e;
  --line: #2c2c2e;
  --line-2: #3a3a3c;
  --red: #f0625f;
  --blue: #6aa8f7;
  --blue-soft: #1d2430;
  --orange-soft: #2d261d;
  --shop: #f07a7a;
  --shop-soft: #312222;
  --purple: #a795ff;
  --purple-soft: #262335;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-fab: 0 4px 16px rgba(0, 0, 0, 0.55);
  --skel-a: #232325;
  --skel-b: #2e2e31;
  --switch-off: #48484a;
  --map-bg: #1c1c1e;
  --star-line: #636366;
  --star-soft: #3a3322;
  --backdrop: rgba(0, 0, 0, 0.6);
}

@media (hover: hover) and (min-width: 768px) {
  html[data-theme="dark"] .btn--primary:hover {
    background: #07894b;
  }
}

html[data-theme="dark"] .toast {
  border: 1px solid var(--line-2);
  background: #2c2c2e;
}

html[data-theme="dark"] .view--welcome.is-active {
  background: var(--bg);
}

html[data-theme="dark"] .hero-slider {
  background: #161616;
  box-shadow: none;
}

html[data-theme="dark"] .chip.is-active,
html[data-theme="dark"] .side-link--fab,
html[data-theme="dark"] .nav-fab {
  color: #fff;
}

html[data-theme="dark"] .order-status--wait,
html[data-theme="dark"] .status-banner,
html[data-theme="dark"] .drv-offers,
html[data-theme="dark"] .nt__icon--warn,
html[data-theme="dark"] .sos__call--orange,
html[data-theme="dark"] .gw-timer,
html[data-theme="dark"] .role-card__art--driver,
html[data-theme="dark"] .rw-option__icon,
html[data-theme="dark"] .help-tile__icon--orange {
  color: #f0a45c;
}

/* Active order on the home screen: a plain raised card. */
html[data-theme="dark"] .active-order {
  --vart-bg: var(--surface);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

html[data-theme="dark"] .active-order__icon {
  --vart-bg: var(--bg-soft);
  background: var(--bg-soft);
  color: var(--text);
}

html[data-theme="dark"] .active-order__text small {
  color: var(--muted-2);
}

html[data-theme="dark"] .active-order__go {
  color: var(--green-dark);
}

/* Wallet and rewards: gray cards with the amount in front. */
html[data-theme="dark"] .rw-hero,
html[data-theme="dark"] .wl-hero,
html[data-theme="dark"] .wl-hero--debt {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .wl-hero small,
html[data-theme="dark"] .wl-hero__note,
html[data-theme="dark"] .rw-hero p,
html[data-theme="dark"] .rw-hero__points small {
  color: var(--muted-2);
  opacity: 1;
}

html[data-theme="dark"] .wl-hero--debt strong {
  color: #f0a45c;
}

html[data-theme="dark"] .wl-hero__mark {
  opacity: 0.05;
}

html[data-theme="dark"] .wl-btn {
  background: var(--green);
  color: #fff;
}

html[data-theme="dark"] .wl-btn--ghost {
  background: var(--bg-soft);
  color: var(--text);
}

html[data-theme="dark"] .rw-level {
  background: var(--bg-soft);
  color: var(--text);
}

html[data-theme="dark"] .rw-level--gold {
  background: rgba(245, 166, 35, 0.16);
  color: #f5c16c;
}

html[data-theme="dark"] .rw-bar {
  background: var(--bg-soft);
}

html[data-theme="dark"] .rw-bar span {
  background: var(--green);
}

html[data-theme="dark"] .rw-code {
  border-color: var(--line-2);
}

html[data-theme="dark"] .bubble.is-mine {
  background: #0b7a44;
}

html[data-theme="dark"] .chat {
  background: var(--bg);
}

html[data-theme="dark"] .nbanner__card {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] img.load-card__img,
html[data-theme="dark"] .shop-card img,
html[data-theme="dark"] .product-card img {
  filter: brightness(0.9);
}

.wl-hero--debt {
  background: linear-gradient(135deg, #8a3b12, #c4581f 60%, #e0833f);
}

.wl-hero__note {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.92;
}

@media (min-width: 1024px) {
  /* The conversation draws its own frame. */
  .view--flush.is-active[data-view="chat"] {
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }
}

/* Grid lists: long rows shrink instead of widening the column. */
.tx-list,
.nt-list,
.msg-list {
  grid-template-columns: minmax(0, 1fr);
}

.wl-earn__grid .is-bad {
  color: var(--red);
}

/* Driver documents sent back from the admin panel (account.js). */
.status-banner.is-bad {
  background: var(--shop-soft);
  color: var(--red);
}

.ob-rejected {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--shop-soft);
  color: var(--red);
}

.ob-rejected > .icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.ob-rejected strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}

.ob-rejected p {
  margin-top: 2px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.8;
}
