:root {
  --green-950: #0d2c09;
  --green-900: #113709;
  --green-800: #174915;
  --green-700: #20733c;
  --green-600: #2f914b;
  --lime: #8fd15f;
  --amber: #f59b24;
  --red: #c74747;
  --ink: #182019;
  --muted: #687266;
  --line: #dce3da;
  --soft: #f3f5f1;
  --card: #ffffff;
  --shadow: 0 16px 38px rgba(13, 44, 9, 0.13);
  --radius: 8px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #dfe5dc;
  color: var(--ink);
  font-family: "Figtree", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.device-shell {
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(143, 209, 95, 0.24), transparent 35%),
    linear-gradient(145deg, #eef2ec, #d9e0d5);
}

.app-root {
  position: relative;
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--soft);
  box-shadow: 0 0 0 1px rgba(13, 44, 9, 0.08), 0 30px 80px rgba(13, 44, 9, 0.2);
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--green-900);
}

.boot-screen img {
  width: 190px;
}

.intro {
  position: relative;
  min-height: 100vh;
  padding: calc(24px + var(--safe-top)) 20px 24px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 44, 9, 0.86) 0%, rgba(13, 44, 9, 0.78) 45%, rgba(243, 245, 241, 1) 45%);
}

.intro::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 300px;
  background: url("../images/geometric.png") center top / 130% auto no-repeat;
  content: "";
  opacity: 0.14;
  pointer-events: none;
}

.intro > * {
  position: relative;
  z-index: 1;
}

.intro-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

.intro-logo {
  width: 172px;
}

.intro-badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero-copy h1 {
  margin: 0;
  max-width: 350px;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 35px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 360px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
}

.scooter-stage {
  position: relative;
  min-height: 210px;
  margin-top: 18px;
}

.scooter-stage img {
  display: block;
  width: min(78vw, 318px);
  margin: 0 auto;
  filter: drop-shadow(0 28px 25px rgba(0, 0, 0, 0.28));
}

.auth-card {
  margin-top: 0;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.benefits-card {
  margin-top: 12px;
  padding: 12px 16px 16px;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.benefits-card .btn {
  width: 100%;
}

.auth-panel {
  animation: auth-panel-in 260ms ease both;
}

.auth-panel-register {
  animation-name: auth-panel-in-reverse;
}

@keyframes auth-panel-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes auth-panel-in-reverse {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #edf2eb;
}

.segmented button {
  min-height: 38px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.segmented button.active {
  color: #fff;
  background: var(--green-800);
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.field label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--ink);
  background: #e7ede5;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  color: #fff;
  background: var(--green-700);
}

.btn.dark {
  color: #fff;
  background: var(--green-950);
}

.btn.warn {
  color: #fff;
  background: var(--red);
}

.btn.ghost {
  background: transparent;
  color: var(--green-800);
}

.btn.icon {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.btn:disabled {
  opacity: 0.55;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.benefit {
  min-height: 96px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf7;
  font-size: 12px;
  font-weight: 700;
}

.benefit i {
  display: block;
  margin-bottom: 8px;
  color: var(--green-700);
  font-size: 19px;
}

.app-frame {
  min-height: 100vh;
  padding-bottom: calc(84px + var(--safe-bottom));
  background: var(--soft);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(10px + var(--safe-top)) 14px 10px;
  overflow: hidden;
  background: var(--green-900);
  color: #fff;
}

.app-header::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/geometric.png") center 18% / 130% auto no-repeat;
  content: "";
  opacity: 0.16;
  pointer-events: none;
}

.header-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
}

.app-header .btn.icon.dark {
  background: transparent;
  box-shadow: none;
}

.app-header .btn.icon.dark i {
  font-size: 25px;
}

.header-row img {
  justify-self: center;
  width: 150px;
}

.logo-button {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.logo-button img {
  width: 150px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.header-inbox {
  position: relative;
  color: #fff;
  background: transparent;
}

.header-inbox i {
  font-size: 22px;
}

.header-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green-900);
  background: #fff;
  font-weight: 900;
  box-shadow: inset 0 0 0 2px rgba(143, 209, 95, 0.7);
}

.content {
  padding: 14px 14px 22px;
}

.hero-panel {
  position: relative;
  min-height: 0;
  margin: -14px -14px 14px;
  padding: 22px 18px 0;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(180deg, var(--green-900), rgba(17, 55, 9, 0.1));
}

.hero-panel::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 260px;
  background: url("../images/geometric.png") center top / 130% auto no-repeat;
  content: "";
  opacity: 0.2;
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel h2 {
  margin: 10px 0 6px;
  text-align: center;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 26px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.sync {
  margin-top: 8px;
  text-align: center;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  background: var(--lime);
}

.hero-scooter {
  display: block;
  width: min(76vw, 305px);
  margin: 16px auto -12px;
  filter: drop-shadow(0 26px 24px rgba(0, 0, 0, 0.28));
}

.section-title {
  margin: 20px 2px 9px;
  color: #7b8578;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card {
  margin-bottom: 10px;
  border: 1px solid rgba(13, 44, 9, 0.07);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 9px 24px rgba(13, 44, 9, 0.08);
}

.card.pad {
  padding: 14px;
}

.product-card .pad {
  padding: 16px 14px 15px;
}

.row-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 12px;
  cursor: pointer;
}

.icon-box {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--green-800);
  background: #e8efe5;
}

.row-card h3,
.mini-card h3,
.product-card h3 {
  margin: 0;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 16px;
}

.row-card p,
.mini-card p,
.product-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--green-800);
  background: #e4f3dc;
  font-size: 12px;
  font-weight: 900;
}

.tag.amber {
  color: #fff;
  background: var(--amber);
}

.tag.red {
  color: #fff;
  background: var(--red);
}

.premium-card {
  overflow: hidden;
}

.premium-image {
  height: 88px;
  background: linear-gradient(90deg, rgba(13, 44, 9, 0.1), rgba(13, 44, 9, 0.54)), url("../images/track_upsell.png") center / cover no-repeat;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mini-card {
  min-height: 112px;
  padding: 12px;
}

.mini-card i {
  margin-bottom: 10px;
  color: var(--green-700);
  font-size: 20px;
}

.mini-card-danger {
  border-color: rgba(199, 71, 71, 0.22);
  background: linear-gradient(180deg, #fff, #fff7f7);
}

.mini-card-danger i,
.mini-card-danger h3 {
  color: #a63d3d;
}

.mini-card-danger p {
  color: #80605d;
}

.mini-card-success {
  border-color: rgba(47, 145, 75, 0.24);
  background: linear-gradient(180deg, #fff, #f5fbf2);
}

.mini-card-success i,
.mini-card-success h3 {
  color: var(--green-700);
}

.mini-card-success p {
  color: #5d7462;
}

.screen-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 2px 14px;
}

.screen-title h1 {
  margin: 0;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 27px;
}

.screen-title p {
  margin: 4px 0 0;
  color: var(--muted);
}

.searchbar {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.searchbar i {
  text-align: center;
  color: var(--muted);
}

.searchbar input {
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tab-chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-800);
  background: #e8efe5;
  font-weight: 900;
}

.tab-chip.active {
  color: #fff;
  background: var(--green-800);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.product-card {
  overflow: hidden;
}

.product-image {
  height: 112px;
  display: grid;
  place-items: center;
  background: #eef2ec;
}

.product-image img {
  max-width: 115%;
  max-height: 116px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-top: 9px;
}

.order-detail {
  display: grid;
  gap: 12px;
}

.detail-row {
  display: grid;
  gap: 3px;
}

.detail-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-items {
  display: grid;
  gap: 10px;
}

.order-item,
.order-total {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-item {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.order-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.order-total {
  align-items: center;
  padding-top: 2px;
}

.full-width {
  width: 100%;
}

.price {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 12px;
}

.list {
  display: grid;
  gap: 10px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green-700);
}

.message {
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.message.unread {
  border-color: rgba(47, 145, 75, 0.24);
  box-shadow: inset 3px 0 0 var(--green-700);
}

.chat-page {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: calc(100vh - 180px);
  gap: 10px;
}

.chat-window {
  display: grid;
  gap: 9px;
  max-height: 345px;
  overflow: auto;
  padding: 12px;
  background: #e8efe5;
  border-radius: var(--radius);
}

.chat-window-full {
  max-height: none;
  align-content: end;
  min-height: 0;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
}

.chat-form input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  outline: 0;
}

.bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(13, 44, 9, 0.07);
}

.bubble.me {
  justify-self: end;
  color: #fff;
  background: var(--green-800);
}

.map-box {
  height: 355px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfe5dc;
}

.map-box .leaflet-container {
  height: 100%;
}

.map-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: var(--muted);
}

.journey-card {
  overflow: hidden;
}

.journey-map {
  height: 178px;
  background: #dfe5dc;
}

.journey-map .leaflet-container,
.journey-map .leaflet-pane,
.journey-map .leaflet-map-pane {
  z-index: 1;
}

.journey-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 25;
  width: min(100%, 460px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 8px calc(7px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 30px rgba(13, 44, 9, 0.11);
}

.bottom-nav button {
  position: relative;
  min-height: 58px;
  display: grid;
  gap: 3px;
  place-items: center;
  color: #6f786d;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.bottom-nav i {
  font-size: 20px;
}

.bottom-nav button.active {
  color: var(--green-800);
}

.nav-dot {
  position: absolute;
  top: 8px;
  right: 22%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-items: end;
  background: rgba(13, 44, 9, 0.42);
}

.modal-root[hidden] {
  display: none;
}

.modal {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 16px 16px calc(16px + var(--safe-bottom));
  border-radius: 14px 14px 0 0;
  background: #fff;
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.24);
}

.modal h2 {
  margin: 0 0 8px;
  font-family: "Archivo", Arial, sans-serif;
}

.toast-root {
  position: fixed;
  left: 50%;
  bottom: calc(92px + var(--safe-bottom));
  z-index: 70;
  width: min(calc(100% - 28px), 430px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--green-950);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.empty {
  padding: 26px 18px;
  text-align: center;
  color: var(--muted);
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-hero .avatar {
  width: 58px;
  height: 58px;
  font-size: 22px;
}

.danger-zone {
  border-color: rgba(199, 71, 71, 0.2);
  background: #fff8f8;
}

@media (min-width: 700px) {
  .device-shell {
    padding: 28px 0;
  }

  .app-root {
    min-height: 920px;
    border-radius: 30px;
  }

  .bottom-nav {
    border-radius: 0 0 30px 30px;
  }
}

@media (max-width: 370px) {
  .hero-copy h1,
  .screen-title h1 {
    font-size: 29px;
  }

  .product-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .benefits {
    grid-template-columns: 1fr;
  }
}
