@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@500;600;700;800&family=Rubik:wght@500;600;700;800&display=swap");

:root {
  --zp-pink: #e11d48;
  --zp-pink-deep: #be123c;
  --zp-ink: #111827;
  --zp-muted: #6b7280;
  --zp-paper: #fff7f8;
  --zp-card: #ffffff;
  --zp-line: #ffe4e6;
  --zp-mint: #0f9d58;
  --zp-night: #111827;
  --zp-shadow: 0 18px 40px rgba(225, 29, 72, 0.16);
  --zp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { font-family: "Nunito Sans", Inter, ui-sans-serif, system-ui, sans-serif; }
h1, h2, h3, .brand, .zp-eta-time { font-family: Rubik, "Nunito Sans", sans-serif; }

.zp-page { background: var(--zp-paper); min-height: 100dvh; }
.zp-float { animation: zpRise 520ms var(--zp-ease) both; }
.zp-stagger > * { animation: zpRise 520ms var(--zp-ease) both; }
.zp-stagger > *:nth-child(1) { animation-delay: 40ms; }
.zp-stagger > *:nth-child(2) { animation-delay: 90ms; }
.zp-stagger > *:nth-child(3) { animation-delay: 140ms; }
.zp-stagger > *:nth-child(4) { animation-delay: 190ms; }
.zp-stagger > *:nth-child(5) { animation-delay: 240ms; }
.zp-stagger > *:nth-child(6) { animation-delay: 290ms; }
.zp-press:active { transform: scale(0.97); }

@keyframes zpRise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes zpBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes zpPulse {
  0% { transform: scale(0.7); opacity: 0.55; }
  100% { transform: scale(1.45); opacity: 0; }
}
@keyframes zpShimmer {
  0% { background-position: -240px 0; }
  100% { background-position: 240px 0; }
}

.zp-dock {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 80;
  width: min(430px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px;
  border-radius: 28px;
  background: rgba(17, 24, 39, 0.92);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.28);
  backdrop-filter: blur(18px);
}
.zp-dock a {
  min-height: 52px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
}
.zp-dock a svg { width: 20px; height: 20px; }
.zp-dock a.active {
  color: #fff;
  background: linear-gradient(180deg, var(--zp-pink), var(--zp-pink-deep));
  box-shadow: 0 8px 16px rgba(225, 29, 72, 0.35);
}
.zp-dock a:focus-visible { outline: 2px solid #fda4af; outline-offset: 2px; }

.zp-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 20px 34px;
  border-radius: 0 0 32px 32px;
  background: linear-gradient(160deg, #e11d48 0%, #fb7185 58%, #2563eb 140%);
  color: #fff;
}
.zp-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  animation: zpBob 4.4s ease-in-out infinite;
}
.zp-chip-row { display: flex; gap: 8px; overflow: auto; padding: 4px 0 2px; }
.zp-chip {
  flex: none;
  border: 0;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.zp-search {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 18px;
  background: #fff;
  color: var(--zp-ink);
  box-shadow: var(--zp-shadow);
}
.zp-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
}

.zp-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--zp-line);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.06);
}
.zp-banner.surge { background: #fff1f2; }
.zp-banner.late { background: #111827; color: #fff; border-color: #111827; }
.zp-banner strong, .zp-banner span { display: block; }
.zp-banner span { font-size: 12px; opacity: 0.8; }

.zp-quote {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--zp-line);
}
.zp-quote-head { margin-bottom: 12px; }
.zp-quote-head strong { display: block; font-size: 15px; }
.zp-quote-head span { display: block; color: var(--zp-muted); font-size: 12px; margin-top: 4px; }
.zp-quote-row, .zp-quote-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}
.zp-quote-total {
  border-top: 1px dashed #fecdd3;
  margin-top: 6px;
  font-size: 16px;
}
.zp-quote-total strong { color: var(--zp-pink); }

.zp-map-shell {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  background: #0b1220;
}
.zp-map-canvas { min-height: 100dvh; }
.zp-eta-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 8;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  animation: zpRise 420ms var(--zp-ease) both;
}
.zp-eta-time {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--zp-pink);
}
.zp-eta-meta { color: var(--zp-muted); font-size: 13px; margin-top: 6px; }
.zp-route-pulse {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.35);
  animation: zpPulse 1.6s ease-out infinite;
}

body.customer-app, body.pp-customer-flow { padding-bottom: 92px; }
.customer-bottom-nav { display: none !important; }

@media (min-width: 880px) {
  .zp-dock { width: 430px; }
  .zp-hero { margin: 16px auto 0; max-width: 720px; border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .zp-float, .zp-stagger > *, .zp-hero::after, .zp-route-pulse, .zp-eta-card {
    animation: none !important;
  }
}
