/* UBER ride — premium car booking UI */
:root {
  --ink: #111111;
  --muted: #6d6d6d;
  --line: #e6e6e6;
  --paper: #f3f3f3;
  --white: #ffffff;
  --black: #0c0c0c;
  --gold: #e0b43a;
  --gold-2: #f6d56a;
  --danger: #9a3412;
  --ok: #166534;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --display: "Outfit", "Manrope", system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.ride {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
.money { font-family: "Segoe UI", Manrope, system-ui, sans-serif; font-variant-numeric: tabular-nums; }

.frame {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: calc(12px + var(--safe-t)) 16px calc(28px + var(--safe-b));
}
body.has-dock .frame { padding-bottom: calc(108px + var(--safe-b)); }

/* ---- dock ---- */
.dock {
  position: fixed;
  left: 50%;
  bottom: calc(12px + var(--safe-b));
  transform: translateX(-50%);
  width: min(420px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px;
  border-radius: 22px;
  background: #161616;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  z-index: 40;
}
.dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px 7px;
  border-radius: 16px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dock a svg { width: 22px; height: 22px; }
.dock a.is-on { background: var(--gold); color: #111; }

/* ---- buttons / fields ---- */
.btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.btn:active { transform: scale(0.985); }
.btn:disabled, .btn.is-off { opacity: 0.45; cursor: not-allowed; }
.btn--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1404; }
.btn--ghost {
  background: transparent;
  color: #111;
  border: 1.5px solid #111;
}
.btn--sm {
  width: auto;
  min-height: 42px;
  margin-top: 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 16px;
  background: #f6f6f6;
  border: 1.5px solid transparent;
}
.field:focus-within { border-color: #111; background: #fff; }
.field input, .field select {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 52px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 16px;
  font-weight: 700;
}
.field select { cursor: pointer; }
.dial {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  padding-right: 8px;
  border-right: 1px solid #ddd;
}
.dial svg { width: 14px; height: 14px; }
.field svg.ico { width: 20px; height: 20px; flex-shrink: 0; color: #111; }
.peso { font-weight: 800; font-size: 18px; }

.alert {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.alert.is-ok { background: #ecfdf3; color: var(--ok); }
.note { margin: 10px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.5; }
.note a, .linkish { color: #111; font-weight: 800; }

.kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; }

/* ---- auth ---- */
.gate { min-height: 100dvh; background: #0c0c0c; color: #fff; }
.gate-login { display: flex; flex-direction: column; }
.stage {
  position: relative;
  min-height: 46dvh;
  background: #000 center/cover no-repeat;
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}
.stage__copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 36px;
  z-index: 1;
}
.stage__copy img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.stage__copy h1 { margin: 10px 0 0; font-size: 34px; font-weight: 800; }
.stage__copy p { margin: 4px 0 0; color: rgba(255,255,255,.78); font-weight: 600; }

.sheet {
  position: relative;
  z-index: 2;
  margin-top: -22px;
  padding: 22px 18px calc(22px + var(--safe-b));
  border-radius: 28px 28px 0 0;
  background: #fff;
  color: #111;
  flex: 1;
}
.sheet h2 { margin: 0; font-size: 22px; }
.sheet .lead { margin: 6px 0 8px; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.45; }
.switch { margin: 16px 0 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); }
.switch a { color: #111; }

.gate-register {
  display: flex;
  flex-direction: column-reverse;
  background: #111;
}
.gate-register .reg-hero {
  height: 180px;
  background: #000 center 30%/cover no-repeat;
  position: relative;
}
.gate-register .reg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #111 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.45) 100%);
}
.reg-panel {
  padding: calc(18px + var(--safe-t)) 18px 18px;
}
.reg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.reg-brand img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
}
.reg-brand strong { display: block; font-family: var(--display); font-size: 20px; }
.reg-brand span { color: rgba(255,255,255,.6); font-size: 12px; font-weight: 700; }
.reg-panel h1 { margin: 0; font-size: 32px; }
.reg-panel .lead { color: rgba(255,255,255,.68); font-weight: 600; line-height: 1.45; }
.gate-register .field { background: #1c1c1c; color: #fff; }
.gate-register .field input { color: #fff; }
.gate-register .field input::placeholder { color: rgba(255,255,255,.4); }
.gate-register .dial { border-color: #333; }
.gate-register .switch { color: rgba(255,255,255,.6); }
.gate-register .switch a { color: var(--gold-2); }
.gate-register .alert { background: #3a2214; color: #fdba74; }

.auth-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
}
.auth-tabs__link {
  flex: 1;
  text-align: center;
  padding: 11px 10px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.auth-tabs__link.is-active {
  color: #111;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: var(--gold);
}

@media (min-width: 900px) {
  .gate-login {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 100dvh;
  }
  .gate-login .stage { min-height: 100dvh; }
  .gate-login .sheet {
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
  }
  .gate-register {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    min-height: 100dvh;
    flex-direction: unset;
  }
  .gate-register .reg-hero { height: auto; min-height: 100dvh; }
  .reg-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px 56px; }
}

/* ---- dashboard ---- */
.home-hero {
  position: relative;
  height: 230px;
  margin: calc(-12px - var(--safe-t)) -16px 0;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  background: #000 center/cover no-repeat;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.72));
}
.home-hero__bar, .home-hero__title {
  position: relative;
  z-index: 1;
  color: #fff;
}
.home-hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + var(--safe-t)) 18px 0;
}
.who { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.who strong { display: block; font-size: 14px; }
.who span { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 600; }
.pill-live {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(224, 180, 58, 0.2);
  color: var(--gold-2);
  border: 1px solid rgba(224, 180, 58, 0.45);
}
.home-hero__title { padding: 28px 18px 0; }
.home-hero__title h1 { margin: 0; font-size: 30px; font-weight: 800; }
.home-hero__title p { margin: 4px 0 0; color: rgba(255,255,255,.75); font-weight: 600; }

.fare {
  position: relative;
  z-index: 2;
  margin-top: -46px;
  padding: 18px 16px 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.fare__amt { margin: 4px 0 12px; font-size: 36px; font-weight: 800; letter-spacing: -0.04em; }
.fare__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fare__meta div {
  padding: 8px 6px;
  border-radius: 12px;
  background: #f6f6f6;
}
.fare__meta span { display: block; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fare__meta b { display: block; margin-top: 2px; font-size: 13px; }

.ride-scroller {
  display: flex;
  gap: 10px;
  margin: 16px -16px 0;
  padding: 2px 16px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ride-scroller::-webkit-scrollbar { display: none; }
.ride-tile {
  flex: 0 0 148px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
  border-radius: 18px;
  background: #111;
  color: #fff;
  text-decoration: none;
}
.ride-tile:nth-child(2) { background: #1c1c1c; }
.ride-tile:nth-child(3) { background: linear-gradient(160deg, #2a230f, #111); }
.ride-tile:nth-child(4) { background: #fff; color: #111; border: 1px solid var(--line); }
.ride-tile svg { width: 26px; height: 26px; }
.ride-tile strong { font-size: 15px; font-family: var(--display); }
.ride-tile em { font-style: normal; font-size: 12px; font-weight: 600; opacity: 0.65; }

.block-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 22px 0 10px;
}
.block-label h2 { margin: 0; font-size: 20px; }
.block-label span { font-size: 12px; font-weight: 700; color: var(--muted); }

.fleet { display: flex; flex-direction: column; gap: 14px; }
.car-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}
.car-card__photo {
  position: relative;
  height: 150px;
  background: #000;
}
.car-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.car-card__price {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #111;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
}
.car-card__body { padding: 14px 14px 16px; }
.car-card__body h3 { margin: 0; font-size: 18px; }
.spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.spec li { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.spec b { color: #111; }

.city { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.city li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
}
.city strong { display: block; font-size: 13px; }
.city em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 600; }
.city b { margin-left: auto; font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; flex-shrink: 0; }
.dot--out { background: #111; }

.dash-layout { display: block; }

@media (min-width: 960px) {
  .home-hero { height: 280px; margin-left: 0; margin-right: 0; border-radius: 28px; }
  .dash-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 22px;
    align-items: start;
    margin-top: 18px;
  }
  .fare { margin-top: 0; }
  .ride-scroller { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
  .ride-tile { flex: 1 1 140px; }
  .fleet { display: grid; grid-template-columns: 1fr 1fr; }
  .home-hero { margin-top: 0; }
  .frame { padding-top: 24px; }
}

/* ---- subpage header ---- */
.subhead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.back {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #111;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.back svg { width: 20px; height: 20px; }
.back-2d {
  border: 2.5px solid var(--2d-border, #1a1a2e);
  box-shadow: 3px 3px 0 var(--2d-border, #1a1a2e);
  background: #fff;
  color: var(--2d-ink, #1a1a2e);
}
.dash-2d-head--compact .back-2d { flex-shrink: 0; }
.subhead h1 { margin: 0; font-size: 26px; }
.lead { margin: 4px 0 12px; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.45; }

.panel {
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.panel + .panel, .stack > * + * { margin-top: 12px; }
.panel h2 { margin: 0 0 8px; font-size: 16px; }
.amt { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.04em; }
.rows { display: flex; flex-direction: column; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.row span { color: var(--muted); }
.row b { text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip {
  border: 1.5px solid #111;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.chip.is-on, .method:has(input:checked), .account:has(input:checked) {
  background: #111;
  color: #fff;
  border-color: #111;
}
.method, .account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.method input, .account input { accent-color: #111; }
.account span { display: flex; flex-direction: column; gap: 2px; }
.account b { font-size: 14px; }
.account span span { font-size: 12px; font-weight: 600; color: var(--muted); }
.account:has(input:checked) span span { color: rgba(255,255,255,.7); }

.pay-layout { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 860px) {
  .pay-layout { display: grid; grid-template-columns: 300px 1fr; align-items: start; }
  .narrow { width: min(720px, 100%); margin: 0 auto; }
}

/* ---- orders / trips ---- */
.trip {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
}
.route { display: flex; flex-direction: column; align-items: center; padding-top: 4px; }
.route i, .route b {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  display: block;
}
.route b { background: #111; }
.route span { width: 2px; flex: 1; min-height: 28px; background: #e5e5e5; }
.trip h3 { margin: 0; font-size: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f3f3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.meter { height: 6px; margin: 10px 0; border-radius: 999px; background: #eee; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #111); border-radius: inherit; }
.trip-list { display: flex; flex-direction: column; gap: 10px; }
.sum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sum-grid div { padding: 12px 8px; border-radius: 16px; background: #111; color: #fff; text-align: center; }
.sum-grid b { display: block; font-size: 16px; }
.sum-grid span { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,.6); }
@media (min-width: 900px) {
  .order-layout { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
}

/* ---- team ---- */
.ticket {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: #111;
  color: #fff;
  overflow: hidden;
}
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  top: 58%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
}
.ticket::before { left: -9px; }
.ticket::after { right: -9px; }
.ticket h2 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); }
.copy-row { display: flex; gap: 8px; }
.copy-row input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  background: #1d1d1d;
  color: #fff;
  font-weight: 800;
}
.bays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.bay {
  display: block;
  padding: 14px 8px;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.bay b { display: block; font-size: 26px; font-family: var(--display); }
.bay span { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.team-grid { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 860px) {
  .team-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .ticket { grid-column: 1 / -1; }
}

/* ---- account ---- */
.profile-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: #111;
  color: #fff;
}
.profile-card img {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  object-fit: cover;
}
.profile-card h1 { margin: 0; font-size: 22px; }
.profile-card p { margin: 4px 0 0; color: rgba(255,255,255,.65); font-weight: 700; }
.statstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.statstrip div { background: #fff; border-radius: 16px; padding: 12px 8px; }
.statstrip span { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.statstrip b { display: block; margin-top: 4px; font-size: 14px; }
.menu { display: flex; flex-direction: column; margin-top: 14px; border-radius: 22px; overflow: hidden; background: #fff; }
.menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.menu a:first-child { border-top: 0; }
.menu svg { width: 22px; height: 22px; flex-shrink: 0; }
.menu strong { display: block; font-size: 14px; }
.menu em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.menu .chev { margin-left: auto; color: #bbb; }
@media (min-width: 900px) {
  .account-layout { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
  .account-layout .menu { margin-top: 0; }
}

/* ---- calendar / gift / missions ---- */
.week, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week span { text-align: center; font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}
.day.is-blank { background: transparent; }
.day.is-future { color: #c4c4c4; }
.day.is-today { outline: 2px solid #111; }
.day.is-claimed { background: #111; color: var(--gold-2); }
.cal-board { margin-top: 12px; }

.pin input {
  width: 100%;
  height: 72px;
  border: 0;
  border-radius: 18px;
  background: #111;
  color: var(--gold-2);
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.4em;
}
.pin input::placeholder { color: rgba(255,255,255,.25); letter-spacing: 0.08em; font-size: 16px; }

.mission-rail { position: relative; display: flex; flex-direction: column; gap: 0; }
.mission {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
}
.stop {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stop b {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  color: var(--gold-2);
  font-size: 12px;
}
.stop i { width: 2px; flex: 1; min-height: 16px; background: #ddd; }
.mission:last-child .stop i { display: none; }
.mission__card {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
}
.mission__card h2 { margin: 0; font-size: 16px; }
.mission__card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.mission__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.reward { font-weight: 800; }
.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #111;
  color: #fff;
}
.code-box h2 { margin: 0; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.code-box strong { font-size: 22px; letter-spacing: 0.14em; }

/* ---- ledger ---- */
.ledger { display: flex; flex-direction: column; gap: 8px; }
.record {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
}
.record h2 { margin: 0; font-size: 15px; grid-column: 1; }
.record .when { margin: 0; grid-column: 1; color: var(--muted); font-size: 12px; font-weight: 600; }
.record .sum { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-weight: 800; }
.record .extra { grid-column: 1 / -1; }

/* ---- about ---- */
.about-hero {
  height: 220px;
  border-radius: 24px;
  background: #000 center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.about-hero span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #fff;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
}
.about-hero span small { display: block; font-size: 13px; font-weight: 600; font-family: var(--font); opacity: 0.8; }

/* ---- modal ---- */
.dash-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 16px;
  padding-bottom: calc(16px + var(--safe-b));
}
.dash-modal[hidden] { display: none; }
.dash-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.dash-modal__card {
  position: relative;
  width: min(420px, 100%);
  padding: 22px 18px 18px;
  border-radius: 24px;
  background: #fff;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.dash-modal.is-open .dash-modal__card { transform: none; opacity: 1; }
.dash-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  cursor: pointer;
  font-size: 20px;
}
.dash-modal__logo { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }
.dash-modal__title { margin: 12px 0 0; font-size: 22px; }
.dash-modal__text { color: var(--muted); font-weight: 600; }
.dash-modal__later {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: transparent;
  font-weight: 800;
  padding: 10px;
  cursor: pointer;
}
body.dash-modal-open { overflow: hidden; }

/* ---- errors ---- */
.miss {
  min-height: calc(100dvh - 8px);
  margin: calc(-12px - var(--safe-t)) -16px calc(-28px - var(--safe-b));
  padding: calc(28px + var(--safe-t)) 22px calc(36px + var(--safe-b));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #111 center/cover no-repeat;
  color: #fff;
}
.miss::before {
  content: "";
  position: absolute;
  inset: 0;
}
.miss { position: relative; }
.miss > * { position: relative; z-index: 1; }
.miss .err__code { margin: 0; font-family: var(--display); font-size: 72px; letter-spacing: -0.06em; color: var(--gold-2); line-height: 0.9; }
.miss h1 { margin: 8px 0 0; font-size: 30px; max-width: 16ch; }
.miss p { max-width: 36ch; color: rgba(255,255,255,.78); font-weight: 600; }
.miss .btn { background: var(--gold); color: #111; max-width: 260px; }
.err-standalone {
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(28px + var(--safe-t)) 22px calc(36px + var(--safe-b));
  background: #111 center/cover no-repeat;
  color: #fff;
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
}
.err-standalone .err__code { margin: 0; font-family: Outfit, Manrope, sans-serif; font-size: 72px; color: #f6d56a; letter-spacing: -0.06em; line-height: 0.9; }
.err-standalone h1 { margin: 8px 0 0; font-size: 30px; }
.err-standalone p { color: rgba(255,255,255,.78); font-weight: 600; }
.err-standalone a.btn { background: #e0b43a; color: #111; max-width: 260px; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .dash-modal__card { transition: none; }
}

/* ==========================================================================
   2D fleet theme — dashboard, orders, team, account
   ========================================================================== */
:root {
  --2d-sky: #7ec8f0;
  --2d-sky-deep: #5a9fd4;
  --2d-road: #4a4a4a;
  --2d-grass: #6bc96b;
  --2d-ink: #1a1a2e;
  --2d-border: #1a1a2e;
  --2d-shadow: 4px 4px 0 var(--2d-border);
  --2d-shadow-sm: 3px 3px 0 var(--2d-border);
}

body.page-dash-2d,
body.page-order-2d,
body.page-team-2d,
body.page-my-2d {
  background: linear-gradient(180deg, var(--2d-sky) 0%, #d4ecff 38%, #eef6fb 100%);
  color: var(--2d-ink);
}

body.page-dash-2d .frame,
body.page-order-2d .frame,
body.page-team-2d .frame,
body.page-my-2d .frame {
  max-width: 480px;
}

/* ---- scene header (dashboard) ---- */
.scene-2d {
  position: relative;
  height: 140px;
  margin: calc(-12px - var(--safe-t)) -16px 0;
  overflow: hidden;
  border-bottom: 3px solid var(--2d-border);
}
.scene-2d__sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #8ed4f8 0%, var(--2d-sky) 55%, #a8e0ff 100%);
}
.scene-2d__cloud {
  position: absolute;
  background: #fff;
  border: 2px solid var(--2d-border);
  border-radius: 999px;
  box-shadow: var(--2d-shadow-sm);
}
.scene-2d__cloud--1 { width: 56px; height: 22px; top: 18px; left: 12%; }
.scene-2d__cloud--2 { width: 72px; height: 26px; top: 32px; right: 10%; opacity: 0.92; }
.scene-2d__road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: var(--2d-road);
  border-top: 3px solid var(--2d-border);
}
.scene-2d__road::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  margin-top: -2px;
  background: repeating-linear-gradient(90deg, #f6d56a 0, #f6d56a 14px, transparent 14px, transparent 28px);
}
.scene-2d__car {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: auto;
  border: 3px solid var(--2d-border);
  border-radius: 12px;
  box-shadow: var(--2d-shadow);
  object-fit: cover;
  z-index: 2;
}

.dash-2d-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.dash-2d-head--compact { margin-top: 4px; }
.dash-2d-user {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.dash-2d-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow-sm);
  color: var(--2d-ink);
}
.dash-2d-avatar svg { width: 26px; height: 26px; }
.dash-2d-user strong { display: block; font-family: var(--display); font-size: 15px; }
.dash-2d-user span { font-size: 12px; font-weight: 700; color: var(--muted); }
.dash-2d-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--gold-2);
  border: 2px solid var(--2d-border);
  box-shadow: var(--2d-shadow-sm);
  color: var(--2d-ink);
}
.title-2d {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.lead-2d { margin-top: 2px; }

.wallet-2d {
  margin-top: 14px;
}
.wallet-2d--hero {
  position: relative;
  z-index: 3;
  margin-top: -32px;
}
.wallet-2d__inner {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow);
}
.wallet-2d__amt {
  margin: 4px 0 12px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-family: var(--display);
}
.wallet-2d__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.wallet-2d__stats div {
  padding: 8px 6px;
  border-radius: 12px;
  background: #f0f7ff;
  border: 2px solid rgba(26, 26, 46, 0.12);
  text-align: center;
}
.wallet-2d__stats span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.wallet-2d__stats b { display: block; margin-top: 2px; font-size: 12px; }

.section-head-2d {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 20px 0 10px;
}
.section-head-2d--tight { margin-top: 24px; }
.section-head-2d h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
}
.section-head-2d span { font-size: 12px; font-weight: 700; color: var(--muted); }

.fleet-2d {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.car-2d {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow);
}
.car-2d__visual { position: relative; }
.car-2d__frame {
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--2d-border);
  background: linear-gradient(180deg, #b8e8ff 0%, #fff 100%);
}
.car-2d__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.car-2d__tag {
  position: absolute;
  top: -6px;
  right: -4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 8px;
  background: var(--gold-2);
  border: 2px solid var(--2d-border);
  box-shadow: 2px 2px 0 var(--2d-border);
}
.car-2d__info h3 {
  margin: 0;
  font-size: 16px;
  font-family: var(--display);
  line-height: 1.2;
}
.spec-2d {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}
.spec-2d li {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.spec-2d b { color: var(--2d-ink); font-size: 11px; }
.spec-2d--inline { margin-top: 10px; }

.btn-2d {
  margin-top: 10px;
  min-height: 46px;
  border-radius: 12px;
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow-sm);
  background: var(--2d-ink);
  color: #fff;
  font-family: var(--display);
}
.btn-2d:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--2d-border); }
.btn-2d.btn--gold { background: var(--gold-2); color: var(--2d-ink); }

.action-bar-2d {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 8px 0 8px;
  padding-bottom: 4px;
}
.action-bar-2d--dash {
  margin: 12px 0 4px;
  padding-bottom: 0;
}
.action-bar-2d--dash .action-2d {
  padding: 10px 4px;
  box-shadow: none;
  border-width: 2px;
  background: #f8fbff;
}
.action-bar-2d--dash .action-2d--cash {
  background: linear-gradient(180deg, #fff3c4 0%, #fff9e6 100%);
}
.action-2d {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 16px;
  background: #fff;
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow-sm);
  text-decoration: none;
  color: var(--2d-ink);
  text-align: center;
}
.action-2d strong { font-size: 11px; font-weight: 800; font-family: var(--display); }
.action-2d__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef6ff;
  border: 2px solid rgba(26, 26, 46, 0.15);
}
.action-2d__icon svg { width: 22px; height: 22px; }
.action-2d--cash {
  background: linear-gradient(180deg, #fff9e6 0%, #fff 100%);
}
.action-2d--cash .action-2d__icon {
  background: var(--gold-2);
  border-color: var(--2d-border);
}

/* ---- orders ---- */
.sum-2d {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.sum-2d__tile {
  padding: 12px 8px;
  text-align: center;
  border-radius: 16px;
  background: #fff;
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow-sm);
}
.sum-2d__tile b { display: block; font-size: 16px; font-family: var(--display); }
.sum-2d__tile span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.rides-2d { display: flex; flex-direction: column; gap: 12px; }
.ride-2d {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow);
}
.ride-2d__thumb {
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--2d-border);
  height: 88px;
  background: linear-gradient(180deg, #b8e8ff, #fff);
}
.ride-2d__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ride-2d__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
}
.ride-2d__top h3 { margin: 0; font-size: 15px; font-family: var(--display); }
.pill-2d {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 8px;
  background: #eef6ff;
  border: 2px solid var(--2d-border);
}
.ride-2d__sub { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.meter-2d {
  height: 8px;
  margin: 10px 0 4px;
  border-radius: 999px;
  background: #e8eef4;
  border: 2px solid var(--2d-border);
  overflow: hidden;
}
.meter-2d i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-2), var(--2d-ink));
  border-radius: inherit;
}
.ride-2d__wait { margin: 8px 0 0; font-size: 12px; }
.empty-2d {
  text-align: center;
  padding: 24px 16px;
  border-radius: 18px;
  background: #fff;
  border: 2.5px dashed var(--2d-border);
}
.empty-2d__car {
  width: 120px;
  margin: 0 auto 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow-sm);
}
.empty-2d__car img { width: 100%; display: block; }
.empty-2d p { font-weight: 700; color: var(--muted); }

/* ---- team ---- */
.invite-2d {
  padding: 16px;
  border-radius: 18px;
  background: var(--2d-ink);
  color: #fff;
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow);
}
.invite-2d h2 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.invite-2d__link-title { margin-top: 14px !important; }
.copy-row--2d input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 0 10px;
  background: #252540;
  color: #fff;
  font-weight: 800;
}
.copy-hint { color: rgba(255,255,255,.75) !important; }

.lanes-2d {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.lane-2d {
  display: block;
  padding: 14px 8px;
  text-align: center;
  text-decoration: none;
  color: var(--2d-ink);
  border-radius: 16px;
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow-sm);
  background: #fff;
}
.lane-2d b { display: block; font-size: 24px; font-family: var(--display); }
.lane-2d span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.lane-2d--a { background: linear-gradient(180deg, #fff9e6, #fff); }
.lane-2d--b { background: linear-gradient(180deg, #e8f8ff, #fff); }
.lane-2d--c { background: linear-gradient(180deg, #ffe8f4, #fff); }

.panel-2d {
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: #fff;
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow-sm);
}
.panel-2d h2 { margin: 0 0 8px; font-size: 15px; font-family: var(--display); }
.rows-2d { display: flex; flex-direction: column; }
.row-2d {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 2px dashed rgba(26, 26, 46, 0.12);
  font-size: 13px;
  font-weight: 700;
}
.row-2d:first-child { border-top: 0; }
.row-2d span { color: var(--muted); }

/* ---- account ---- */
.profile-2d {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow);
}
.profile-2d__car {
  border-radius: 14px;
  overflow: hidden;
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow-sm);
}
.profile-2d__car img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.profile-2d__copy strong { font-family: var(--display); font-size: 18px; }
.profile-2d__copy p { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }

.statstrip-2d div {
  border: 2px solid rgba(26, 26, 46, 0.12);
  box-shadow: var(--2d-shadow-sm);
}

.menu-2d {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow);
}
.menu-2d a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  text-decoration: none;
  border-top: 2px solid rgba(26, 26, 46, 0.08);
}
.menu-2d a:first-child { border-top: 0; }
.menu-2d__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef6ff;
  border: 2px solid rgba(26, 26, 46, 0.12);
  flex-shrink: 0;
}
.menu-2d__icon svg { width: 20px; height: 20px; }
.menu-2d__text strong { display: block; font-size: 14px; }
.menu-2d__text em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.menu-2d .chev { margin-left: auto; color: #bbb; width: 18px; height: 18px; }

.paydock-2d {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 4px;
}
.paydock-2d--top {
  margin-top: 12px;
  margin-bottom: 14px;
}
.paydock-2d__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 14px;
  font-weight: 800;
  font-family: var(--display);
  text-decoration: none;
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow);
}
.paydock-2d__btn svg { width: 22px; height: 22px; }
.paydock-2d__btn--out {
  background: var(--2d-ink);
  color: #fff;
}
.paydock-2d__btn--in {
  background: var(--gold-2);
  color: var(--2d-ink);
}

.dash-modal__card--2d {
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow);
}


body.page-dash-2d .dock,
body.page-order-2d .dock,
body.page-team-2d .dock,
body.page-my-2d .dock {
  border: 2.5px solid var(--2d-border);
  box-shadow: var(--2d-shadow);
}

@media (min-width: 520px) {
  .fleet-2d { display: grid; grid-template-columns: 1fr 1fr; }
  .car-2d { grid-template-columns: 1fr; }
  .car-2d__frame { height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-2d:active { transform: none; }
}
