:root {
  color-scheme: light;
  --ink: #182521;
  --muted: #61716b;
  --line: #dbe7e1;
  --paper: #fbfdf9;
  --soft: #edf7ef;
  --green: #188657;
  --green-dark: #0d5f40;
  --blue: #2f7fc0;
  --amber: #f2ad3b;
  --red: #de5143;
  --shadow: 0 18px 55px rgba(25, 47, 38, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(24, 134, 87, 0.18), transparent 30rem),
    linear-gradient(135deg, #f5fbf4 0%, #eef6fb 48%, #fff6e6 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 18px 16px 92px;
}

.screen.is-active {
  display: block;
}

.login-screen {
  min-height: 100vh;
  padding: 0 0 24px;
  background: linear-gradient(180deg, #092f24 0%, #f7fbf6 54%);
}

.login-visual {
  position: relative;
  display: grid;
  min-height: 430px;
  overflow: hidden;
  padding: 18px;
  align-content: space-between;
  color: white;
}

.login-visual::before,
.login-visual::after {
  position: absolute;
  inset: 0;
  content: "";
}

.login-visual::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 22, 16, 0.25), rgba(5, 38, 27, 0.9)),
    linear-gradient(135deg, rgba(24, 134, 87, 0.78), rgba(47, 127, 192, 0.42));
}

.login-visual::after {
  z-index: 2;
  inset: auto 18px 0;
  height: 120px;
  border-radius: 32px 32px 0 0;
  background: linear-gradient(180deg, transparent, rgba(247, 251, 246, 0.96) 76%);
}

.login-visual img,
.map-panel img,
.price-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-visual > img {
  position: absolute;
  inset: 0;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #21a96e, #0d5f40);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.login-brand {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand .brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
}

.login-brand strong {
  display: block;
  font-size: 1.05rem;
}

.login-brand span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 760;
}

.login-hero-copy {
  position: relative;
  z-index: 3;
  padding-bottom: 82px;
}

.login-hero-copy .eyebrow {
  color: #d7fff0;
}

.login-hero-copy h1 {
  max-width: 11ch;
  margin: 8px 0 0;
  color: white;
  font-size: clamp(2.5rem, 12vw, 3.55rem);
  text-wrap: balance;
}

.login-panel {
  position: relative;
  z-index: 4;
  margin: -74px 14px 0;
  border: 1px solid rgba(219, 231, 225, 0.92);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 55px rgba(25, 47, 38, 0.18);
  backdrop-filter: blur(18px);
}

.login-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.login-card-head h2 {
  margin: 4px 0 0;
  font-size: 1.45rem;
}

.login-card-head > svg {
  width: 34px;
  height: 34px;
  color: var(--green);
}

.login-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.login-benefits span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 850;
  background: var(--soft);
}

.login-benefits svg {
  width: 16px;
  height: 16px;
}

.eyebrow,
.topbar span,
.page-head span {
  margin: 0;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 15ch;
  margin-bottom: 22px;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 0.98;
}

h2,
h3,
h4 {
  line-height: 1.1;
}

.login-form,
.ticket-form,
.withdraw-form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.register-screen {
  background: linear-gradient(180deg, #f4fbf5 0%, #fbfdf9 100%);
}

.register-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: white;
  box-shadow: 0 18px 45px rgba(25, 47, 38, 0.1);
}

.register-card h2 {
  margin: 4px 0 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #33443d;
  font-size: 0.88rem;
  font-weight: 760;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: white;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(24, 134, 87, 0.12);
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: white;
  font-weight: 850;
  text-decoration: none;
  background: var(--green);
}

.primary-btn:hover {
  background: var(--green-dark);
}

.secondary-btn {
  border: 1px solid var(--line);
  color: var(--green-dark);
  background: white;
}

.danger-btn {
  background: var(--red);
}

.login-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.login-actions button,
.section-title button {
  border: 0;
  color: var(--green-dark);
  font-weight: 850;
  background: transparent;
}

.topbar,
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.topbar strong,
.page-head strong {
  display: block;
  font-size: 1.05rem;
}

.topbar small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
}

.icon-btn.danger {
  color: var(--red);
}

.level-badge {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(24, 134, 87, 0.24);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 850;
  background: var(--soft);
}

.balance-card,
.wallet-hero {
  margin-bottom: 16px;
  border-radius: 8px;
  padding: 18px;
  color: white;
  background: linear-gradient(135deg, #0d6a45, #2d83bb);
}

.balance-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
}

.balance-card .eyebrow,
.wallet-hero .eyebrow {
  color: #dcfff0;
}

.balance-card h2,
.wallet-hero h2 {
  margin: 4px 0;
  font-size: 2rem;
}

.balance-card span,
.wallet-hero span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  font-weight: 700;
}

.weight-box {
  display: grid;
  gap: 4px;
  width: 118px;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.quick-grid button {
  display: grid;
  min-height: 82px;
  place-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 850;
  background: white;
}

.quick-grid button:nth-child(2) svg {
  color: var(--blue);
}

.quick-grid button:nth-child(3) svg {
  color: var(--amber);
}

.quick-grid button:nth-child(4) svg {
  color: var(--green);
}

.status-card,
.guide-card,
.ticket-form,
.withdraw-form,
.location-card,
.price-card,
.transaction-card,
.track-card,
.logout-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.status-card {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.status-card h3,
.status-card p {
  margin-bottom: 4px;
}

.status-card p:not(.eyebrow),
.location-card p,
.price-card p,
.transaction-card p,
.track-card p,
.guide-card li,
.logout-panel p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #23b26d;
  box-shadow: 0 0 0 6px rgba(35, 178, 109, 0.14);
}

.section-block {
  margin-top: 20px;
}

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

.section-title h3 {
  margin: 0;
  font-size: 1.05rem;
}

.transaction-list,
.location-list,
.price-list,
.status-track {
  display: grid;
  gap: 12px;
}

.transaction-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.transaction-icon,
.logout-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--soft);
}

.transaction-card h4,
.transaction-card p {
  margin: 0;
}

.amount {
  color: var(--green-dark);
  font-weight: 900;
}

.small-btn {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--green-dark);
  font-weight: 850;
  background: white;
}

.map-panel {
  position: relative;
  height: 210px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 8px;
  background: #dfeee7;
}

.map-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(13, 95, 64, 0.16);
}

.map-pin {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.map-pin.one {
  left: 54%;
  top: 34%;
}

.map-pin.two {
  left: 24%;
  top: 58%;
  background: var(--blue);
}

.map-pin.three {
  right: 16%;
  bottom: 18%;
  background: var(--amber);
}

.location-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 13px;
}

.location-card h4,
.location-card p {
  margin-bottom: 5px;
}

.guide-card,
.ticket-form,
.withdraw-form {
  margin-top: 16px;
  padding: 14px;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 9px;
}

.check-list svg {
  flex: 0 0 20px;
  color: var(--green);
}

.search-box {
  position: relative;
  display: block;
  margin-bottom: 12px;
}

.search-box svg {
  position: absolute;
  left: 13px;
  top: 38px;
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.search-box input {
  padding-left: 42px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.segmented button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  background: transparent;
}

.segmented .is-selected {
  color: white;
  background: var(--green);
}

.price-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  overflow: hidden;
}

.price-card img {
  min-height: 130px;
}

.price-card > div {
  display: grid;
  gap: 7px;
  padding: 12px 12px 12px 0;
}

.price-card h4,
.price-card p {
  margin: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border-radius: 999px;
  padding: 5px 8px;
  color: #28453a;
  font-size: 0.72rem;
  font-weight: 850;
  background: var(--soft);
}

.price-value {
  color: var(--green-dark);
  font-size: 1.08rem;
  font-weight: 950;
}

.wallet-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.wallet-stats span {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.14);
}

.track-card {
  display: flex;
  gap: 12px;
  padding: 12px;
}

.track-step {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
}

.track-card.is-waiting .track-step {
  background: var(--amber);
}

.track-card.is-rejected .track-step {
  background: var(--red);
}

.chat-body {
  display: flex;
  height: calc(100vh - 160px);
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-bottom: 14px;
}

.bubble {
  max-width: 82%;
  border-radius: 14px;
  padding: 11px 13px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
  background: white;
  border: 1px solid var(--line);
}

.bubble.user {
  align-self: flex-end;
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--green-dark);
  font-weight: 800;
  background: white;
}

.chat-form {
  position: fixed;
  right: max(16px, calc((100vw - 460px) / 2 + 16px));
  bottom: 78px;
  left: max(16px, calc((100vw - 460px) / 2 + 16px));
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 253, 249, 0.96);
  backdrop-filter: blur(16px);
}

.chat-form input {
  min-height: 44px;
}

.logout-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 18px;
  text-align: center;
}

.logout-actions {
  display: grid;
  width: 100%;
  gap: 10px;
}

.bottom-nav {
  position: fixed;
  right: max(0px, calc((100vw - 460px) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - 460px) / 2));
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.bottom-nav button {
  display: grid;
  min-height: 66px;
  place-items: center;
  gap: 4px;
  border: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  background: transparent;
}

.bottom-nav button.is-active {
  color: var(--green);
}

.icon-btn svg,
.primary-btn svg,
.secondary-btn svg,
.quick-grid svg,
.bottom-nav svg,
.level-badge svg {
  width: 20px;
  height: 20px;
}

.toast {
  position: fixed;
  right: max(16px, calc((100vw - 460px) / 2 + 16px));
  bottom: 88px;
  left: max(16px, calc((100vw - 460px) / 2 + 16px));
  z-index: 5;
  transform: translateY(20px);
  border-radius: 8px;
  padding: 13px 14px;
  color: white;
  font-weight: 850;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  transition: 0.2s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 780px) {
  body {
    padding: 28px 0;
  }

  .phone-shell {
    min-height: calc(100vh - 56px);
    border-radius: 28px;
  }

  .screen {
    min-height: calc(100vh - 56px);
  }

  .bottom-nav {
    right: calc((100vw - 460px) / 2);
    left: calc((100vw - 460px) / 2);
    border-radius: 0 0 28px 28px;
  }
}
