/* HetiPaku v2 design system. Loaded on rebuilt pages.
   Legacy styles.css still loaded on /tili, /admin/*, legal pages until rebuild. */

:root {
  --orange:       #ff5a1f;
  --orange-dark:  #e54a10;
  --orange-soft:  #fff4e5;
  --orange-deep:  #b45309;

  --ink:          #15171a;
  --ink-soft:     #424651;
  --muted:        #7a7f8a;

  --line:         #e6e8eb;
  --line-strong:  #d6d9de;

  --bg:           #f5f6f8;
  --bg-warm:      #f7f0e6;
  --bg-warm-deep: #ede2d2;

  --card:         #ffffff;
  --green:        #25D366;
  --green-dark:   #1ebe5a;

  --dark:         #111418;
  --dark-card:    #1a1f25;
  --dark-line:    #2a3138;
  --dark-text:    #c8cdd3;
  --dark-muted:   #8b929a;

  --warm-text:    #574a3a;
  --warm-muted:   #8a7860;
  --warm-line:    #b8a994;

  --r-sm: 8px;
  --r-md: 9px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-2xl: 16px;
  --r-3xl: 22px;
  --r-pill: 999px;

  --fast: 0.1s;
  --base: 0.15s;
  --slow: 0.3s;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--orange-dark); }
a:hover { color: var(--orange); }
img { max-width: 100%; height: auto; display: block; }

/* ===== NAV ===== */

.nav {
  background: var(--card);
  border-bottom: 0.5px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
}
.brand__name { font-weight: 700; font-size: 17px; letter-spacing: -0.005em; }

.nav__right { display: inline-flex; align-items: center; gap: 8px; }
.nav-link {
  font-size: 13px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  text-decoration: none;
  color: var(--ink-soft);
  border: 0.5px solid var(--line);
  background: var(--card);
  transition: border-color var(--base), color var(--base);
}
.nav-link:hover { border-color: var(--line-strong); color: var(--ink); }
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  padding: 3px 8px 3px 3px;
  border-radius: var(--r-pill);
}
.nav-user:hover { background: var(--bg); color: var(--ink); }
.nav-user__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 0.5px solid var(--line);
}
.nav-user__name { font-size: 13px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 380px) {
  .nav-user__name { max-width: 70px; font-size: 12px; }
}

/* ===== HOME LAYOUT ===== */

.home { background: var(--card); }
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 18px;
}
@media (min-width: 720px) {
  .container { max-width: 720px; padding: 0 32px; }
}
@media (min-width: 1080px) {
  .container { max-width: 980px; }
}

/* ===== HERO FORM (top of page) ===== */

.hero-form {
  padding: 26px 0 22px;
}
.hero-form__title {
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--ink);
}
.hero-form__title em {
  font-style: normal;
  color: var(--orange);
}
.hero-form__sub {
  font-size: clamp(14px, 2.4vw, 17px);
  color: var(--ink-soft);
  margin: 0 0 18px;
  line-height: 1.5;
}

.step-form { display: block; }
.step { display: none; }
.step.is-active { display: block; }

.step-card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2xl);
  padding: 18px;
}

.field { margin-bottom: 14px; }
.field:last-of-type { margin-bottom: 0; }
.field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.field__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}
.field__action {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 11px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: background var(--base);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.field__action:hover { background: #fde0bb; }
.field__action--busy { background: var(--bg); color: var(--muted); cursor: progress; }
.field__action--ok { background: #dcfce7; color: #166534; }
.field__action--err { background: #fee2e2; color: #991b1b; }

.input, .field input[type="text"], .field input[type="tel"], .field textarea, .field select {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color var(--base), background var(--base);
}
.input:focus, .field input:focus, .field textarea:focus, .field select:focus {
  background: var(--card);
  border-color: var(--orange);
}
.field input[readonly] {
  background: var(--orange-soft);
  color: var(--orange-deep);
  border-color: transparent;
}
.field textarea { resize: vertical; min-height: 60px; }

/* ===== LIVE FORM (cascade) ===== */

.live-form { display: block; }

/* ADDRESS BLOCK with map between Mistä and Mihin */

.addr-block {
  margin-bottom: 16px;
}
.addr-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
}
.addr-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-sizing: content-box;
  margin-top: 32px;
  position: relative;
  z-index: 2;
}
.addr-dot--from {
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}
.addr-dot--to {
  background: var(--orange);
  box-shadow: 0 0 0 2px var(--orange);
}
.addr-divider {
  position: relative;
  margin: 6px 0 6px 13px;
  padding: 0 0 0 27px;
  min-height: 28px;
}
.addr-divider__line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background-image: linear-gradient(180deg, var(--line-strong) 50%, transparent 50%);
  background-size: 2.5px 8px;
  background-repeat: repeat-y;
  transition: opacity var(--base);
}
.addr-divider.is-loaded .addr-divider__line { opacity: 0; }
.addr-divider__map {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
  margin: 8px 0;
  animation: trip-rise 0.45s cubic-bezier(0.2, 0.85, 0.35, 1);
}
.addr-divider__map svg { display: block; width: 100%; height: auto; }

.field--addr {
  flex: 1;
  min-width: 0;
}
.field--addr .field__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.field--addr input {
  width: 100%;
  padding: 14px 14px;
  font-size: 16px;
  font-weight: 500;
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: var(--r-lg);
  color: var(--ink);
  outline: none;
  transition: border-color var(--base), background var(--base);
}
.field--addr input:focus {
  background: var(--card);
  border-color: var(--orange);
}
.field--addr input::placeholder {
  color: var(--muted);
  font-weight: 400;
}
.field--addr input.is-invalid,
.field--addr input.needs-number {
  border-color: #fb923c;
  background: #fff9f0;
}

.addr-warn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  padding: 10px 14px;
  background: #fff4e5;
  border: 1px solid #fde0bb;
  border-radius: var(--r-md);
  font-size: 14px;
  color: #b45309;
  font-weight: 500;
  animation: trip-rise 0.25s ease-out;
}
.addr-warn__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fb923c;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.field__hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 7px 0 0;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #b45309;
  background: #fff4e5;
  border: 1px solid #fde0bb;
  border-radius: var(--r-md);
  font-weight: 500;
  animation: trip-rise 0.25s ease-out;
}
.field__hint-icon {
  font-size: 14px;
  font-weight: 700;
  color: #b45309;
}

/* SECTION CARDS (cascade reveals) */

.reveal {
  animation: trip-rise 0.4s cubic-bezier(0.2, 0.85, 0.35, 1);
}
.section-card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2xl);
  padding: 16px;
  margin-bottom: 14px;
}
.section-card__title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 10px;
}
.section-card__sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin: -4px 0 12px;
}
.section-card .chips { margin-bottom: 0; }
.section-card--identity { background: var(--bg); border-color: var(--line); }

.identity-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-row {
  display: flex;
  gap: 8px;
}
.phone-row input { flex: 1; }
.phone-row .btn { flex-shrink: 0; padding: 12px 16px; font-size: 14px; }

.phone-verified {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--r-lg);
  font-size: 14px;
  color: #166534;
}
.phone-verified__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.phone-verified__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.phone-verified__num {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.phone-verified__lbl {
  font-size: 11px;
  color: #166534;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.phone-verified__change {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--orange);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 6px;
}
.phone-verified__change:hover { color: var(--orange-dark); }

.final-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--r-lg);
  margin: 14px 0;
}
.final-phone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  flex-shrink: 0;
}
.final-phone__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.final-phone__num {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.final-phone__lbl {
  font-size: 11px;
  color: var(--orange-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.final-phone.is-empty { display: none; }

.pipe {
  display: grid;
  gap: 0;
  margin: 4px 0 18px;
  position: relative;
}
.pipe--n6 { grid-template-columns: repeat(6, 1fr); }
.pipe--n5 { grid-template-columns: repeat(5, 1fr); }
.pipe--n4 { grid-template-columns: repeat(4, 1fr); }
.pipe__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 4px;
}
.pipe__step::before {
  content: '';
  position: absolute;
  top: 13px; left: 0; right: 0;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.pipe__step:first-child::before { left: 50%; }
.pipe__step:last-child::before  { right: 50%; }
.pipe__step--done::before,
.pipe__step--current::before { background: var(--orange); }
.pipe__step:last-child.pipe__step--current::before { background: var(--line); }
.pipe__dot {
  position: relative;
  z-index: 1;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.pipe__step--done .pipe__dot {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.pipe__step--current .pipe__dot {
  background: #fff;
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}
.pipe__step--current .pipe__dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  opacity: .5;
  animation: pipePulse 1.6s ease-out infinite;
}
@keyframes pipePulse {
  0%   { transform: scale(.8); opacity: .55; }
  100% { transform: scale(1.5); opacity: 0;   }
}
.pipe__label {
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.25;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.01em;
  max-width: 70px;
}
.pipe__step--done .pipe__label,
.pipe__step--current .pipe__label { color: var(--ink); }
.pipe__step--current .pipe__label { color: var(--orange-deep); font-weight: 700; }

.btn--ok {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}
.btn--ok:hover { background: #c8f4d6; color: #166534; }

/* ===== TRIP PLAN ===== */

.trip-plan {
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2xl);
  padding: 16px;
  animation: trip-rise 0.45s cubic-bezier(0.2, 0.85, 0.35, 1);
  overflow: hidden;
}
@keyframes trip-rise {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.trip-plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.trip-plan__kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.trip-plan__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  border-radius: var(--r-pill);
}
.trip-plan__badge--ok {
  background: #dcfce7;
  color: #166534;
}
.trip-plan__map {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 12px;
}
.trip-plan__map svg { display: block; width: 100%; height: auto; }
#trip-route {
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
  animation: trip-draw 1.4s ease-out 0.15s forwards;
}
@keyframes trip-draw {
  to { stroke-dashoffset: 0; }
}
#trip-marker-from, #trip-marker-to {
  opacity: 0;
  animation: trip-pop 0.35s ease-out forwards;
}
#trip-marker-from { animation-delay: 0.1s; }
#trip-marker-to   { animation-delay: 1.3s; }
@keyframes trip-pop {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
.trip-plan__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.trip-stat {
  text-align: center;
  padding: 12px 6px;
  background: var(--bg);
  border-radius: var(--r-lg);
}
.trip-stat__value {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.trip-stat__label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.trip-plan__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 0.5px solid var(--line);
  font-size: 14px;
}
.trip-plan__row-label { color: var(--muted); font-weight: 500; }
.trip-plan__row-value { color: var(--ink); font-weight: 600; text-align: right; }
.trip-plan__row-value--big {
  font-size: 19px;
  color: var(--orange-deep);
  font-weight: 700;
}
.trip-plan__caveat {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

.trip-match {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 12px;
  border-top: 0.5px solid var(--line);
  margin-top: 6px;
  position: relative;
}
.trip-match::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}
.trip-match__icon {
  font-size: 36px;
  line-height: 1;
  display: inline-block;
  animation: trip-icon-pop 0.5s 0.2s both cubic-bezier(0.2, 1.4, 0.4, 1);
}
.trip-match__icon--van {
  animation: trip-icon-pop 0.5s 0.6s both cubic-bezier(0.2, 1.4, 0.4, 1), trip-van-drive 2.4s 1.1s infinite ease-in-out;
}
@keyframes trip-icon-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes trip-van-drive {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}
.trip-match {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.trip-match__arrow {
  font-size: 22px;
  color: var(--muted);
  font-weight: 700;
  opacity: 0;
  animation: trip-arrow-in 0.4s 0.4s forwards;
}
@keyframes trip-arrow-in {
  to { opacity: 1; }
}
.trip-match__label {
  width: 100%;
  text-align: center;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}

.trip-plan__caveat--big {
  font-size: 13px;
  font-style: normal;
  color: var(--ink-soft);
  padding: 14px 12px 4px;
  border-top: 0.5px solid var(--line);
  margin-top: 6px;
}

.trip-plan__hint {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.4;
}

.when-picker {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.when-picker__label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.when-picker__input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.when-picker__input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15);
}

.map-block {
  margin-bottom: 14px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2xl);
}
.map-block__hint {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin: 10px 0 2px;
}
.map-block__hint--ok { color: var(--ink-soft); }

#leaflet-map {
  height: 320px;
  border-radius: var(--r-lg);
  z-index: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

#leaflet-map .leaflet-control-zoom {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  overflow: hidden;
}
#leaflet-map .leaflet-control-zoom a {
  background: #ffffff;
  color: var(--ink);
  border: none;
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-size: 18px;
  font-weight: 600;
}
#leaflet-map .leaflet-control-zoom a:hover {
  background: var(--card);
  color: var(--orange);
}

/* Live market feed */
.live-market {
  padding: 28px 0 12px;
}

.live-market[data-empty="0"] .live-market__hint { display: none; }
.live-market[data-empty="1"] .live-feed { display: none; }

.live-market__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.live-market__pulse {
  width: 10px;
  height: 10px;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
  animation: live-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.live-market__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.live-market__stats {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 600;
}

.live-market__stats strong { color: var(--orange); }

.live-market__hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
}

.live-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  position: relative;
  transition: max-height 0.85s ease, padding 0.85s ease, margin 0.85s ease, opacity 0.85s ease, border-color 0.85s ease;
  overflow: hidden;
  max-height: 50px;
}

.live-card.is-new {
  animation: liveSlideIn 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes liveSlideIn {
  0%   { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -4px; transform: translateY(-6px); }
  40%  { opacity: 0.2; max-height: 50px; padding-top: 8px; padding-bottom: 8px; margin-bottom: 0; transform: translateY(0); }
  100% { opacity: 1; max-height: 50px; padding-top: 8px; padding-bottom: 8px; margin-bottom: 0; transform: translateY(0); }
}

.live-card.is-leaving {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: -4px;
  border-color: transparent;
}

.live-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.live-card--paid    .live-card__dot { background: #16a34a; }
.live-card--bidding .live-card__dot { background: #f97316; }

.live-card__kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.live-card--paid    .live-card__kind { color: #166534; }
.live-card--bidding .live-card__kind { color: #c2410c; }

.live-card__route {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.live-card__route-arrow { color: var(--ink-mute); font-weight: 400; margin: 0 4px; }

.live-card__item {
  color: var(--ink-soft);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.live-card__price {
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}

.live-card--paid    .live-card__price { color: #166534; }
.live-card--bidding .live-card__price { color: #c2410c; }

.live-card__rel {
  color: var(--ink-mute);
  font-size: 11.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .live-card { font-size: 12px; padding: 7px 10px; gap: 8px; }
  .live-card__kind { display: none; }
  .live-card__rel { font-size: 11px; }
  .live-market__title { font-size: 16px; }
  .live-market__stats { width: 100%; margin-left: 0; }
}

/* ===== GDPR consent ===== */
.gdpr-tab {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 100;
  padding: 7px 12px;
  background: rgba(21, 23, 26, 0.88);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: inherit;
  transition: transform 0.12s, background 0.12s;
}
.gdpr-tab:hover {
  background: #15171a;
  transform: translateY(-1px);
}

.gdpr-banner {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 101;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--line-strong, #d1d5db);
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  animation: gdprIn 0.25s ease-out;
}
@keyframes gdprIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gdpr-banner__title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #15171a);
}
.gdpr-banner__text {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft, #525866);
}
.gdpr-banner__text a {
  color: var(--orange, #ff5a1f);
  text-decoration: underline;
}
.gdpr-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gdpr-btn {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.gdpr-btn--primary {
  background: var(--orange, #ff5a1f);
  color: #fff;
  border-color: var(--orange, #ff5a1f);
}
.gdpr-btn--primary:hover {
  background: #e54a10;
  border-color: #e54a10;
}
.gdpr-btn--ghost {
  background: transparent;
  color: var(--ink-soft, #525866);
  border-color: var(--line-strong, #d1d5db);
}
.gdpr-btn--ghost:hover {
  border-color: var(--ink, #15171a);
  color: var(--ink, #15171a);
}

@media (max-width: 540px) {
  .gdpr-banner { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .gdpr-tab    { left: 10px; bottom: 10px; }
}

.leaf-marker { position: relative; }
.leaf-marker__dot {
  position: absolute;
  top: 0; left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18);
  z-index: 2;
}
.leaf-marker--from .leaf-marker__dot { background: var(--ink); }
.leaf-marker--to .leaf-marker__dot   { background: var(--orange); }
.leaf-marker__pulse {
  position: absolute;
  top: 0; left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.5;
  animation: marker-pulse 2.2s infinite ease-out;
}
@keyframes marker-pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(2.6); opacity: 0;   }
}
.leaf-marker__pill {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.leaf-marker__pill--to { background: var(--orange); }

.trip-price-block {
  text-align: center;
  padding: 16px 8px 12px;
  border-top: 0.5px solid var(--line);
  margin-top: 8px;
}
.trip-price-block__amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: var(--orange-deep);
  letter-spacing: -0.02em;
}
.trip-price-block__num {
  font-size: 38px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--orange-deep);
}
.trip-price-block__sep {
  font-size: 30px;
  font-weight: 600;
  color: var(--orange);
  opacity: 0.7;
  padding: 0 2px;
}
.trip-price-block__currency {
  font-size: 26px;
  font-weight: 700;
  color: var(--orange-deep);
  margin-left: 4px;
}
.trip-price-block__label {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ===== AUTOCOMPLETE SUGGESTIONS ===== */

.field { position: relative; }
.suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
  max-height: 260px;
  overflow-y: auto;
  z-index: 5;
}
.suggestion {
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 0.5px solid var(--line);
  transition: background var(--base);
}
.suggestion:last-child { border-bottom: 0; }
.suggestion:hover, .suggestion.is-focus { background: var(--bg); }
.suggestion__main { color: var(--ink); font-weight: 500; font-size: 14px; }
.suggestion__sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.suggestions__empty {
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ===== CHIPS ===== */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  padding: 8px 13px;
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--base), border-color var(--base), color var(--base);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.chip:hover { background: var(--card); border-color: var(--line-strong); }
.chip.is-selected {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange-deep);
}
.chip__icon { width: 14px; height: 14px; flex-shrink: 0; }

.chip-detail {
  margin-top: 8px;
}

.chip--sm {
  padding: 5px 12px;
  font-size: 13px;
  border-radius: 999px;
}

.subq {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.subq__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 8px;
}

.subq .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subq .input {
  margin-top: 4px;
}

.photo-up {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.photo-up__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.photo-up__hint-inline {
  color: var(--ink-mute);
  font-weight: 400;
  font-size: 12px;
}

.photo-up__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.photo-up__btn {
  display: inline-block;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.photo-up__btn:hover {
  border-color: var(--orange);
  background: var(--orange-soft, #fff7ed);
}

.photo-up__preview {
  margin-top: 10px;
  position: relative;
  display: inline-block;
  max-width: 200px;
}

.photo-up__preview img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.photo-up__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-up__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-mute);
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  border-radius: var(--r-lg);
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background var(--base), color var(--base), border-color var(--base), transform var(--fast);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); color: #fff; }
.btn--ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--bg); }
.btn--wa { background: var(--green); color: #fff; }
.btn--wa:hover { background: var(--green-dark); color: #fff; }
.btn--google { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn--google:hover { background: var(--bg); border-color: var(--line-strong); color: var(--ink); }
.btn--block { width: 100%; padding: 15px; font-size: 16px; }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn[disabled], .btn.is-disabled { cursor: not-allowed; opacity: 0.55; transform: none; }
.btn-icon { font-size: 18px; line-height: 1; }

.fineprint {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
  text-align: center;
}
.fineprint a { color: var(--ink-soft); text-decoration: underline; }

/* ===== HERO IMAGE (block 2, below form) ===== */

.hero-image {
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-warm-deep) 100%);
  border-top: 0.5px solid var(--line);
  padding: 26px 0;
}
.hero-image__caption {
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--warm-muted);
  margin: 0 0 14px;
  font-weight: 600;
}
.hero-image__img {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  height: auto;
  aspect-ratio: 1136 / 1340;
  object-fit: cover;
  border-radius: var(--r-2xl, 16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.hero-image__quote {
  text-align: center;
  font-size: 14px;
  color: var(--warm-text);
  font-style: italic;
  margin: 16px 0 0;
  line-height: 1.5;
}

/* ===== IMAGE-SLOT (placeholder for future photos) ===== */

.image-slot {
  background: var(--bg);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-xl);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.image-slot__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.image-slot__desc { font-style: italic; color: var(--ink-soft); }
.image-slot__size {
  display: block;
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.image-slot--portrait    { aspect-ratio: 4 / 5; }
.image-slot--landscape   { aspect-ratio: 16 / 9; }
.image-slot--square      { aspect-ratio: 1 / 1; }
.image-slot--banner      { aspect-ratio: 21 / 9; }
.image-slot--avatar      { aspect-ratio: 1 / 1; border-radius: 50%; padding: 8px; min-height: 60px; }
.image-slot--logo        { aspect-ratio: 3 / 1; padding: 8px; min-height: 36px; }

.image-slot--warm {
  background: rgba(255,255,255,0.55);
  border-color: var(--warm-line);
  color: var(--warm-muted);
}
.image-slot--warm .image-slot__title,
.image-slot--warm .image-slot__desc { color: var(--warm-text); }

/* ===== IDENTITY STEP ===== */

.identity {
  padding: 26px 0;
  background: var(--bg);
  border-top: 0.5px solid var(--line);
  text-align: center;
}
.identity__kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 6px;
}
.identity__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--ink);
}
.identity__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
}
.identity__link {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 8px 0 0;
}
.identity__link a { color: var(--orange-dark); }

/* ===== MINI STATS ===== */

.mini-stats {
  padding: 22px 0;
  background: var(--card);
}
.mini-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.mini-stat {
  text-align: center;
  padding: 14px 8px;
  background: var(--bg);
  border-radius: var(--r-lg);
}
.mini-stat__icon { color: var(--orange); line-height: 0; display: inline-flex; align-items: center; justify-content: center; height: 28px; }
.mini-stat__icon svg { width: 26px; height: 26px; display: block; }
.mini-stat__value { font-size: 13px; font-weight: 600; margin-top: 6px; color: var(--ink); }
.mini-stat__label { font-size: 11px; color: var(--muted); }

/* ===== DRIVER INVITE (compact, dark) ===== */

.driver-invite {
  padding: 26px 0;
  background: var(--dark);
  color: var(--dark-text);
}
.driver-invite__title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.driver-invite__text {
  font-size: 13px;
  margin: 0 0 14px;
  color: var(--dark-text);
}
.driver-invite__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-pill);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.driver-invite__btn:hover { background: var(--bg); color: var(--ink); }

/* ===== FOOTER ===== */

.footer {
  padding: 24px 0;
  background: var(--ink);
  color: var(--dark-muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}
.footer__row { margin: 0 0 4px; }
.footer__row--strong { color: var(--dark-text); }
.footer a { color: var(--dark-text); text-decoration: underline; }
.footer a:hover { color: #fff; }
.footer__small { font-size: 10px; color: var(--dark-muted); margin: 6px 0 0; }

/* ===== FAB WHATSAPP ===== */

.fab-wa {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  z-index: 100;
  box-shadow: 0 6px 22px rgba(37,211,102,0.4), 0 2px 6px rgba(0,0,0,0.15);
  transition: transform var(--base), background var(--base);
}
.fab-wa:hover { transform: translateY(-2px) scale(1.04); background: var(--green-dark); }
.fab-wa svg { width: 28px; height: 28px; fill: #fff; }

/* ===== OTP PANEL (reused from previous) ===== */

.otp-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 13px 14px;
  margin-top: 8px;
  display: none;
}
.otp-panel.is-visible { display: block; }
.otp-panel__status { font-size: 13px; color: var(--ink-soft); margin: 0 0 8px; }
.otp-panel__status--ok { color: #166534; }
.otp-panel__status--err { color: #991b1b; }
.otp-panel__row { display: flex; gap: 8px; }
.otp-panel__code {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
  background: var(--card);
}
.otp-panel__code:focus { outline: none; border-color: var(--orange); }
.otp-panel__note {
  font-size: 11px;
  color: var(--ink-soft);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--r-md);
  padding: 8px 10px;
  margin: 8px 0 0;
  line-height: 1.45;
}
.otp-panel__sample {
  display: block;
  margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #fde4c6;
  border-radius: 6px;
  padding: 6px 8px;
  word-break: break-word;
}
.otp-panel__hint { font-size: 11px; color: var(--muted); margin: 6px 0 0; }
.otp-panel__link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--orange-dark);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

/* ===== STEP SUMMARY (collapsed step 1 visible later) ===== */

.step-summary {
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 11px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.step-summary__text {
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.step-summary__text strong { color: var(--ink); }
.step-summary__edit {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  color: var(--orange-dark);
  text-decoration: underline;
  padding: 4px 6px;
  flex-shrink: 0;
}

/* ===== HONEY (anti-bot) ===== */
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
