*,
*::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;
  --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;
}

/* ========== Login ========== */

.login-body,
.login-body .page {
  height: 100%;
  overflow-x: hidden;
}

.login-body .page {
  min-height: 100%;
  display: flex;
  justify-content: center;
  background: #ffffff;
}

.login-body .screen {
  width: 100%;
  max-width: 430px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 52px 24px 28px;
  background: #ffffff;
}

.login-body .brand {
  text-align: right;
}

.login-body .brand__name {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--green);
}

.login-body .brand__tagline {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.login-body .hero {
  margin-top: 44px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.7;
  color: var(--text);
  text-align: right;
}

.login-body .hero span {
  display: block;
}

.login-body .actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.login-body .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  box-shadow: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.login-body .btn--primary {
  background: var(--green);
  color: #ffffff;
}

.login-body .btn--ghost {
  background: #ffffff;
  color: var(--text);
  border-color: #d9d9d9;
}

.login-body .btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.login-body .platform {
  margin-top: 64px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.login-body .spacer {
  flex: 1 1 auto;
  min-height: 48px;
}

.login-body .security {
  background: var(--bg-soft);
  border-radius: 18px;
  padding: 20px 18px 18px;
  text-align: right;
}

.login-body .security__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.login-body .security__text {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

@media (min-width: 768px) {
  .login-body,
  .login-body .page {
    background: #f7f7f7;
  }

  .login-body .page {
    align-items: center;
    padding: 32px 16px;
  }

  .login-body .screen {
    width: 100%;
    max-width: 420px;
    height: auto;
    min-height: 640px;
    border: 1px solid #e6e6e6;
    border-radius: 24px;
    padding: 48px 32px 32px;
  }
}

/* ========== 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: #ffffff;
}

.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);
}

.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: #ffffff;
  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;
}

.btn--primary:hover {
  background: var(--green-dark);
}

.btn--ghost {
  background: #fff;
  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 {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.hero-track {
  display: flex;
  direction: ltr;
  width: 100%;
  transition: transform 0.35s ease;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  height: 210px;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide__overlay {
  direction: rtl;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 18, 16, 0.15) 0%,
    rgba(12, 18, 16, 0.45) 55%,
    rgba(12, 18, 16, 0.62) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 16px 28px;
  color: #fff;
}

.hero-slide__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
}

.hero-slide__text {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.92;
}

.hero-slide__hint {
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.82;
}

.hero-slide__overlay .btn {
  align-self: flex-start;
  margin-top: 12px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13px;
}

.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.hero-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dots button.is-active {
  background: #fff;
  width: 16px;
  border-radius: 99px;
}

/* Services */

.service-panel {
  background: #fff;
  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: #fff;
}

.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: #fff;
  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: #d9d9d9;
}

.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: #fff;
  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: #fff;
  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: #fdeeee;
  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 */

.map-tabs {
  display: flex;
  gap: 18px;
  padding: 0 16px 8px;
  border-bottom: 1px solid var(--line);
}

.map-tab {
  position: relative;
  padding: 8px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.map-tab.is-active {
  color: var(--green);
}

.map-tab.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.map-stage {
  position: relative;
  flex: 1;
  min-height: 420px;
  overflow: hidden;
}

#appMap {
  position: absolute;
  inset: 0;
  background: #e8eee9;
  direction: ltr;
}

.map-search {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  z-index: 6;
}

.map-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font: inherit;
  text-align: right;
}

.map-search__results {
  margin-top: 6px;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
}

.map-search__results button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: right;
  font: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.map-search__results li:last-child button {
  border-bottom: 0;
}

.map-locate {
  position: absolute;
  left: 12px;
  bottom: 148px;
  z-index: 6;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: var(--green);
  display: grid;
  place-items: center;
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 28px;
  height: 40px;
  transform: translate(-50%, -100%);
  pointer-events: none;
  transition: transform 0.16s ease;
}

.map-pin.is-lifting {
  transform: translate(-50%, -118%);
}

.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  background: var(--green);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.map-float {
  position: absolute;
  right: 12px;
  left: 12px;
  bottom: 12px;
  z-index: 7;
}

.map-sheet {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  padding: 12px;
}

.map-sheet__addr {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
}

.map-sheet__stats {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 8px;
}

.maplibregl-map,
.maplibregl-ctrl-attrib {
  font-family: inherit;
}

.maplibregl-ctrl-top-left {
  top: 56px;
}

/* Workshops / shop */

.shop-card,
.product-card,
.msg-card,
.menu-item,
.form-card,
.promo-card,
.stat-card {
  background: #fff;
  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: #fff;
  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: #fff;
  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: #c2c2c2;
  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: #fff;
  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: #fff;
  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: rgba(0, 0, 0, 0.28);
}

.sheet__panel {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  background: #fff;
  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);
}

/* Desktop */

@media (min-width: 768px) {
  .view {
    padding: 0 24px 32px;
  }

  .hero-slide {
    height: 260px;
  }

  .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: #fff;
    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 {
    height: 300px;
  }

  .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: #fff;
    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);
  }
}
