body {
  background: #e8ebe9;
}
.premium {
  background: #f6f7f4;
}

/* The product header lives below the iOS status bar and never joins page scrolling. */
.app.premium {
  --safe-top: env(safe-area-inset-top, 0px);
  --topbar-height: 78px;
  --header-gap: 8px;
  padding-top: calc(var(--topbar-height) + var(--safe-top) + var(--header-gap));
}
.app.premium .topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 100%);
  height: calc(var(--topbar-height) + var(--safe-top));
  padding: calc(14px + var(--safe-top)) max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left));
  z-index: 1000;
}
.top-actions {
  display: flex;
  gap: 8px;
}
.location-chip {
  border: 0;
  background: #fff;
  border-radius: 99px;
  padding: 8px 11px;
  color: #43504b;
  font-size: 12px;
  font-weight: 700;
}
.auth-shell {
  min-height: 100dvh;
  max-width: 980px;
  margin: auto;
  background: #f7f8f5;
  display: grid;
}
.auth-visual {
  min-height: 47vh;
  padding: 28px 24px;
  border-radius: 0 0 38px 38px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #063d33, #007a64 58%, #31d2ae);
  color: #fff;
}
.auth-visual:after {
  content: "";
  position: absolute;
  width: 340px;
  height: 170px;
  left: -40px;
  top: 42%;
  border-radius: 60%;
  border: 35px solid #ffffff22;
  transform: rotate(-15deg);
}
.city-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 18%, #65fbd677, transparent 28%);
}
.floating-pin {
  position: absolute;
  right: 22%;
  top: 35%;
  z-index: 2;
  width: 75px;
  height: 75px;
  border-radius: 50% 50% 50% 14px;
  transform: rotate(-45deg);
  background: #fff;
  color: #006b57;
  display: grid;
  place-items: center;
  font-size: 33px;
  font-weight: 900;
  box-shadow: 0 24px 45px #0004;
}
.auth-brand {
  display: flex;
  position: relative;
  z-index: 2;
  justify-content: space-between;
  align-items: center;
}
.auth-brand .brand {
  color: #fff;
}
.auth-brand .brand-mark {
  background: #fff;
  color: #006b57;
}
.live-badge {
  font-size: 10px;
  padding: 7px 10px;
  border: 1px solid #ffffff66;
  border-radius: 99px;
}
.auth-copy {
  position: absolute;
  z-index: 3;
  bottom: 26px;
  left: 24px;
  right: 24px;
}
.auth-copy .eyebrow {
  color: #8dffe3;
}
.auth-copy h1 {
  font-size: 34px;
}
.auth-copy p {
  color: #ffffffc7;
  margin: 0;
}
.auth-panel {
  padding: 24px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e8ece8;
  border-radius: 15px;
  padding: 4px;
  margin-bottom: 20px;
}
.auth-tabs button {
  border: 0;
  background: transparent;
  padding: 12px;
  border-radius: 11px;
  font-weight: 750;
}
.auth-tabs .active {
  background: #fff;
  box-shadow: 0 4px 15px #0001;
}
.legal {
  text-align: center;
  font-size: 11px;
}
.map-page {
  padding: 0;
}
.map-stage {
  height: calc(100dvh - 168px - env(safe-area-inset-top, 0px));
  position: relative;
}
.map-search {
  position: absolute;
  z-index: 12;
  top: 14px;
  left: 18px;
  right: 18px;
  background: #fffffff2;
  backdrop-filter: blur(15px);
  border-radius: 19px;
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 12px 34px #14231e21;
}
.map-search small,
.map-search strong {
  display: block;
}
.map-search small {
  font-size: 9px;
  color: #77827e;
  letter-spacing: 0.12em;
}
.map-search button {
  border: 0;
  background: #dcfff5;
  width: 40px;
  height: 40px;
  border-radius: 13px;
}
.map-status {
  position: absolute;
  z-index: 11;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  background: #15231f;
  color: #fff;
  border-radius: 99px;
  padding: 8px 13px;
  font-size: 11px;
  white-space: nowrap;
}
.map-status span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42e1bc;
  margin-right: 6px;
}
.spot-card,
.empty-map {
  position: absolute;
  z-index: 12;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: #fff;
  border-radius: 27px;
  padding: 18px;
  box-shadow: 0 20px 60px #1628222e;
}
.spot-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
}
.spot-top h2 {
  font-size: 18px;
  margin: 2px 0;
}
.spot-top p {
  margin: 0;
  font-size: 12px;
}
.time-pill {
  background: #e3fff6;
  color: #006b57;
  border-radius: 13px;
  padding: 8px;
  font-size: 12px;
  font-weight: 800;
}
.spot-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 15px 0;
}
.spot-metrics div {
  padding: 10px 4px;
  text-align: center;
  background: #f0f3f1;
  border-radius: 14px;
}
.spot-metrics strong,
.spot-metrics span {
  display: block;
}
.spot-metrics span {
  font-size: 9px;
  color: #78817d;
}
.spot-note,
.trust-note {
  font-size: 12px;
  padding: 12px;
  background: #fff9ec;
  border-radius: 12px;
  margin-bottom: 12px;
}
.empty-map {
  text-align: center;
}
.location-gate {
  padding-top: 16vh;
  text-align: center;
}
.location-orb {
  width: 110px;
  height: 110px;
  border-radius: 40px;
  background: linear-gradient(135deg, #d9fff4, #c8d9ff);
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  font-size: 50px;
  color: #006b57;
}
.location-orb:has(img) {
  position: relative;
  overflow: visible;
  background: radial-gradient(circle at 34% 24%, #f2fffb, #d7fff4 58%, #cce9ff);
  box-shadow:
    0 22px 48px rgb(0 104 84 / 13%),
    0 1px 0 #fff inset;
}
.location-orb:has(img)::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 48px;
  background: radial-gradient(circle, rgb(44 223 179 / 16%), transparent 68%);
}
.location-orb img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgb(0 68 55 / 20%));
  animation: location-logo-float 3.8s ease-in-out infinite;
}
@keyframes location-logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .location-orb img {
    animation: none;
  }
}
.premium-card {
  background: #fff;
  border: 1px solid #dde5e1;
  border-radius: 25px;
  padding: 19px;
  box-shadow: 0 10px 30px #11271f0f;
}
.location-preview {
  padding: 15px;
  background: #eafff8;
  border-radius: 15px;
  color: #006b57;
  font-weight: 700;
}
.wait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.wait-grid input {
  display: none;
}
.wait-grid span {
  display: block;
  border: 2px solid #dce5e1;
  border-radius: 17px;
  text-align: center;
  padding: 13px;
}
.wait-grid input:checked + span {
  background: #dffff6;
  border-color: #00a887;
  color: #006b57;
}
.wait-grid b {
  font-size: 21px;
}
.live-page {
  text-align: center;
}
.live-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #006b57;
}
.live-label i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #00c2a0;
  border-radius: 50%;
  margin-right: 6px;
}
.hero-timer {
  width: 195px;
  height: 195px;
  margin: 22px auto;
  background: #fff;
  border: 12px solid #d9fff4;
  border-top-color: #00b997;
  border-radius: 50%;
  display: grid;
  place-content: center;
}
.hero-timer strong {
  font-size: 43px;
}
.hero-timer span {
  font-size: 11px;
  color: #77827e;
}
.handover-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.handover-steps span {
  font-size: 9px;
  padding: 8px;
  background: #edf0ee;
  border-radius: 99px;
}
.handover-steps .done {
  background: #cffff1;
  color: #006b57;
}
.activity-list {
  display: grid;
  gap: 10px;
}
.activity-card {
  background: #fff;
  border: 1px solid #e0e6e3;
  border-radius: 20px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
}
.activity-card span {
  font-size: 10px;
  color: #77827e;
}
.activity-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #e0fff5;
  display: grid;
  place-items: center;
}
.profile-hero {
  background: linear-gradient(135deg, #093c33, #007d67);
  color: #fff;
  border-radius: 28px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.profile-hero h1 {
  margin: 3px 0;
  font-size: 24px;
}
.profile-hero p {
  color: #bde8dc;
  margin: 0;
}
.profile-avatar {
  margin: 0;
  background: #fff;
  color: #006b57;
}
.verified {
  font-size: 10px;
  color: #71f3d2;
}
.premium-metrics {
  margin-top: 12px;
}
.premium-metrics > div {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid #e0e6e3;
}
.premium-metrics span,
.premium-metrics strong {
  display: block;
}
.premium-metrics span {
  font-size: 9px;
  color: #7a8580;
}
.premium-metrics strong {
  font-size: 21px;
  margin-top: 6px;
}
.settings-card {
  margin-top: 12px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
}
.settings-card button {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 17px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #edf0ee;
}
.error {
  background: #8c1821 !important;
}
.splash {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  background: #006b57;
  color: #fff;
  font-size: 70px;
  font-weight: 900;
}
@media (min-width: 760px) {
  .auth-shell {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 720px;
    margin: 40px auto;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 30px 90px #12231e33;
  }
  .auth-visual {
    min-height: 720px;
    border-radius: 0;
  }
  .auth-panel {
    align-self: center;
    padding: 48px;
  }
}

/* Generated ParkSwap city artwork: premium context without blocking the UI. */
.auth-shell {
  max-width: 1100px;
}
.auth-visual {
  isolation: isolate;
  background: #063d33 url("/assets/parkswap-city-hero.jpg") center 62% / cover no-repeat;
}
.auth-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(2 25 22 / 42%), rgb(3 41 34 / 18%) 38%, rgb(2 26 22 / 91%)),
    linear-gradient(90deg, rgb(0 54 45 / 38%), transparent 72%);
}
.auth-visual > * {
  z-index: 1;
}
.auth-copy h1,
.auth-copy p {
  text-shadow: 0 3px 24px #001d18;
}
.floating-pin {
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
  border: 1px solid #ffffff9c;
}
.live-badge {
  background: #003e3473;
  backdrop-filter: blur(10px);
}
@media (max-width: 759px) {
  .auth-visual {
    background-position: 57% 58%;
  }
  .floating-pin {
    right: 17%;
    top: 31%;
    width: 66px;
    height: 66px;
  }
  .auth-copy h1 {
    font-size: 31px;
  }
}

/* Unified product surfaces and crisp vector icon system. */
.ui-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.input,
input,
textarea,
select {
  font-size: 16px;
}
.input {
  min-height: 56px;
  border: 1px solid #d9e2de;
  border-radius: 18px;
  padding: 16px 17px;
  box-shadow: 0 1px 0 rgb(255 255 255 / 80%) inset;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input:focus {
  border-color: #00a889;
  background: #fff;
  box-shadow: 0 0 0 4px rgb(0 168 137 / 11%);
}
.topbar {
  height: 78px;
  border-bottom: 1px solid rgb(12 55 47 / 6%);
}
.location-chip,
.credit-pill {
  min-height: 44px;
  padding: 10px 13px;
  box-shadow: 0 8px 26px rgb(15 42 35 / 7%);
}
.location-chip .ui-icon {
  width: 17px;
  height: 17px;
  color: #008870;
}
.credit-pill .ui-icon {
  width: 19px;
  color: #f2a800;
}
.bottom-nav {
  height: 86px;
  padding-top: 9px;
  border-top: 1px solid rgb(17 52 43 / 8%);
  box-shadow: 0 -14px 40px rgb(9 38 30 / 6%);
}
.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 18px;
  transition: color 0.2s, transform 0.2s;
}
.nav-item .ui-icon {
  width: 24px;
  height: 24px;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  top: -9px;
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: #00a889;
}
.nav-item:active {
  transform: translateY(1px);
}
.section-heading {
  padding: 10px 2px 8px;
}
.section-heading p {
  margin: 0;
  max-width: 370px;
}
.offer-page,
.activity-page,
.profile-page,
.live-page {
  padding-top: 22px;
}
.offer-card {
  display: grid;
  gap: 22px;
  padding: 22px;
  border: 0;
  box-shadow: 0 20px 55px rgb(16 45 37 / 8%);
}
.location-preview {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
}
.location-preview .ui-icon {
  width: 25px;
  height: 25px;
}
.location-preview b,
.location-preview small {
  display: block;
}
.location-preview small {
  margin-top: 3px;
  color: #628078;
  font-weight: 500;
}
.trust-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  color: #38574f;
  background: linear-gradient(135deg, #edfff9, #f7fffc);
  border: 1px solid #d2f4e9;
}
.trust-note b {
  display: block;
  color: #006b57;
  margin-bottom: 2px;
}
.map-search button {
  display: grid;
  place-items: center;
  color: #007c66;
}
.empty-map {
  border: 1px solid rgb(10 53 44 / 6%);
  padding: 22px;
}
.empty-map .empty-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #dcfff5, #eef7ff);
  color: #00755f;
}
.empty-map .empty-icon .ui-icon {
  width: 29px;
  height: 29px;
}
.empty-map .eyebrow {
  display: block;
  margin-bottom: 5px;
}
.empty-map .btn .ui-icon,
.offer-page .btn .ui-icon {
  width: 19px;
  height: 19px;
}
.activity-page::before,
.offer-page::before {
  content: "";
  position: absolute;
  inset: 78px 0 auto;
  height: 170px;
  z-index: -1;
  background: radial-gradient(circle at 80% 0, #d6fff3, transparent 63%);
}
.activity-list {
  margin-top: 14px;
}
.activity-card {
  min-height: 82px;
  border: 0;
  padding: 16px;
  box-shadow: 0 13px 36px rgb(16 45 37 / 7%);
}
.activity-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  color: #00755f;
}
.activity-card > b {
  color: #006b57;
}
.profile-hero {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(135deg, #053b32, #00866d 72%, #16b995);
  box-shadow: 0 22px 50px rgb(0 84 68 / 20%);
}
.profile-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -60px;
  top: -95px;
  border: 35px solid rgb(255 255 255 / 9%);
  border-radius: 50%;
}
.profile-avatar {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 27px;
  font-size: 35px;
  box-shadow: 0 14px 35px rgb(0 32 26 / 20%);
}
.profile-identity {
  min-width: 0;
  z-index: 1;
}
.profile-identity h1 {
  margin: 5px 0 3px;
}
.profile-identity p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.verified {
  display: flex;
  align-items: center;
  gap: 5px;
}
.verified .ui-icon {
  width: 15px;
  height: 15px;
}
.premium-metrics {
  gap: 12px;
  margin-top: 16px;
}
.premium-metrics > div {
  min-height: 106px;
  padding: 18px;
  border: 0;
  box-shadow: 0 12px 34px rgb(16 45 37 / 6%);
}
.premium-metrics strong {
  display: flex;
  align-items: center;
  gap: 5px;
}
.premium-metrics .ui-icon {
  width: 21px;
  color: #f2a800;
}
.settings-card {
  margin-top: 16px;
  border: 1px solid rgb(12 55 47 / 6%);
  box-shadow: 0 15px 42px rgb(16 45 37 / 7%);
}
.settings-card button {
  min-height: 62px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  color: #19352e;
  text-align: left;
}
.settings-card button .ui-icon {
  color: #00866d;
}
.settings-card button i {
  color: #8ba09a;
  font-size: 23px;
  font-style: normal;
}
.settings-card button > span {
  min-width: 0;
}
.settings-card button > span b,
.settings-card button > span small {
  display: block;
}
.settings-card button > span b {
  font-size: 13px;
}
.settings-card button > span small {
  margin-top: 3px;
  overflow: hidden;
  color: #71817c;
  font-size: 10px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-card .setting-state.active {
  min-width: 31px;
  padding: 4px 7px;
  border-radius: 99px;
  color: #006b57;
  background: rgb(218 255 245 / 72%);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.live-page .premium-card {
  border: 0;
  box-shadow: 0 18px 50px rgb(16 45 37 / 9%);
}
.hero-timer {
  box-shadow: 0 18px 50px rgb(0 107 87 / 10%);
}
@media (max-width: 420px) {
  .topbar {
    padding-inline: 14px;
  }
  .brand {
    font-size: 22px;
    gap: 7px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .location-chip {
    padding-inline: 10px;
  }
  .location-chip span {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .credit-pill {
    padding-inline: 11px;
  }
  .page {
    padding-inline: 16px;
  }
  .profile-hero {
    padding: 20px;
  }
  .profile-avatar {
    width: 78px;
    height: 78px;
  }
}

/* Deeper liquid-glass treatment for the signed-in product surfaces. */
.profile-page {
  position: relative;
  isolation: isolate;
}
.profile-page::before,
.profile-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
}
.profile-page::before {
  width: 230px;
  height: 230px;
  top: 165px;
  right: -95px;
  background: radial-gradient(circle, rgb(47 224 184 / 17%), transparent 68%);
}
.profile-page::after {
  width: 210px;
  height: 210px;
  top: 390px;
  left: -105px;
  background: radial-gradient(circle, rgb(119 171 255 / 13%), transparent 70%);
}
.topbar {
  background: linear-gradient(135deg, rgb(255 255 255 / 82%), rgb(246 250 255 / 68%));
  border-bottom: 1px solid rgb(255 255 255 / 82%);
  box-shadow:
    0 12px 36px rgb(16 49 41 / 7%),
    0 1px 0 rgb(255 255 255 / 96%) inset;
  backdrop-filter: blur(28px) saturate(1.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
}
.location-chip,
.credit-pill {
  border: 1px solid rgb(255 255 255 / 86%);
  background: linear-gradient(145deg, rgb(255 255 255 / 82%), rgb(238 248 255 / 58%));
  box-shadow:
    0 12px 30px rgb(19 52 44 / 8%),
    0 1px 0 #fff inset,
    0 -1px 0 rgb(116 185 166 / 9%) inset;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.premium-metrics > div {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgb(255 255 255 / 88%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 82%), rgb(242 251 248 / 60%));
  box-shadow:
    0 18px 42px rgb(13 51 41 / 9%),
    0 1px 0 #fff inset,
    1px 1px 0 rgb(255 255 255 / 52%) inset;
  backdrop-filter: blur(24px) saturate(1.38);
  -webkit-backdrop-filter: blur(24px) saturate(1.38);
}
.premium-metrics > div::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 12px;
  right: 12px;
  height: 34%;
  pointer-events: none;
  border-radius: 15px 15px 50% 50%;
  background: linear-gradient(180deg, rgb(255 255 255 / 54%), transparent);
}
.premium-metrics span {
  position: relative;
  z-index: 1;
}
.premium-metrics strong {
  position: relative;
  z-index: 1;
  justify-content: center;
  width: 100%;
}
.settings-card {
  border: 1px solid rgb(255 255 255 / 84%);
  background: linear-gradient(145deg, rgb(255 255 255 / 78%), rgb(241 250 247 / 57%));
  box-shadow:
    0 22px 52px rgb(13 51 41 / 10%),
    0 1px 0 #fff inset;
  backdrop-filter: blur(26px) saturate(1.42);
  -webkit-backdrop-filter: blur(26px) saturate(1.42);
}
.settings-card button {
  background: transparent;
  border-bottom-color: rgb(115 145 136 / 13%);
  transition: background 0.2s ease, transform 0.2s ease;
}
.settings-card button:hover,
.settings-card button:focus-visible {
  background: linear-gradient(90deg, rgb(255 255 255 / 54%), rgb(220 255 246 / 40%));
}
.bottom-nav {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 76%), rgb(237 250 246 / 55%));
  border-color: rgb(255 255 255 / 88%);
  box-shadow:
    0 20px 56px rgb(7 44 34 / 18%),
    0 1px 0 #fff inset,
    0 -1px 0 rgb(91 157 139 / 10%) inset;
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
}

/* Selected interaction language from React Bits / 21st: spotlight, fluid glass, pill nav. */
.app {
  padding-bottom: 104px;
}
.bottom-nav {
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(456px, calc(100% - 24px));
  height: 78px;
  padding: 7px 8px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 26px;
  background: linear-gradient(135deg, rgb(255 255 255 / 88%), rgb(246 252 249 / 76%));
  box-shadow:
    0 18px 50px rgb(10 41 33 / 16%),
    0 1px 0 #fff inset;
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
}
.nav-item {
  overflow: hidden;
  isolation: isolate;
}
.nav-item.active {
  background: linear-gradient(145deg, rgb(221 255 246 / 90%), rgb(242 255 250 / 74%));
  box-shadow:
    0 8px 22px rgb(0 117 95 / 10%),
    0 1px 0 #fff inset;
}
.nav-item.active::before {
  display: none;
}
.spotlight-surface {
  --spot-x: 22%;
  --spot-y: 5%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.spotlight-surface.empty-map,
.spotlight-surface.spot-card {
  position: absolute;
}
.spotlight-surface::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(180px circle at var(--spot-x) var(--spot-y), rgb(69 231 190 / 17%), transparent 68%);
  transition: opacity 0.3s ease;
}
.spotlight-surface:hover::after {
  opacity: 1;
}
.reveal-item {
  animation: surface-reveal 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #006b57, #008f74 58%, #00715d);
  box-shadow:
    0 13px 28px rgb(0 107 87 / 22%),
    0 1px 0 rgb(255 255 255 / 24%) inset;
}
.btn-primary::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 42%;
  height: 220%;
  left: -65%;
  top: -60%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 34%), transparent);
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  left: 125%;
}
.btn-primary:focus-visible,
.nav-item:focus-visible,
.location-chip:focus-visible {
  outline: 3px solid rgb(0 168 137 / 24%);
  outline-offset: 2px;
}
.hero-timer {
  position: relative;
  isolation: isolate;
}
.hero-timer::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(42 222 178 / 17%), transparent 68%);
  animation: calm-pulse 2.6s ease-in-out infinite;
}
.map-status {
  box-shadow: 0 10px 30px rgb(6 34 28 / 20%);
  animation: status-float 3s ease-in-out infinite;
}
@keyframes surface-reveal {
  from {
    opacity: 0;
    transform: translateY(13px) scale(0.985);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes calm-pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}
@keyframes status-float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -3px);
  }
}
@media (hover: none) {
  .spotlight-surface::after {
    opacity: 0.62;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .hero-timer::before,
  .map-status {
    animation: none;
  }
  .btn-primary::before {
    display: none;
  }
  .empty-map {
    animation: none;
  }
}

/* Compact empty-map sheet: keeps the map visible and actionable. */
.empty-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  bottom: 16px;
  padding: 14px;
  border-radius: 22px;
  text-align: left;
  background: rgb(255 255 255 / 91%);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 18px 48px rgb(12 42 34 / 17%);
  animation:
    surface-reveal 0.52s cubic-bezier(0.22, 1, 0.36, 1) both,
    empty-sheet-float 4.2s ease-in-out 0.7s infinite;
}
@keyframes empty-sheet-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
.empty-map-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.empty-map .empty-icon {
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 16px;
}
.empty-map .empty-icon .nav-image {
  width: 40px;
  height: 40px;
}
.empty-map .eyebrow {
  margin: 0 0 2px;
  font-size: 9px;
}
.empty-map h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.25px;
}
.empty-map p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.35;
}
.empty-action {
  min-width: 52px;
  min-height: 52px;
  border: 0;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #006b57, #009579);
  box-shadow: 0 10px 24px rgb(0 107 87 / 22%);
}
.empty-action span {
  display: none;
}
.empty-action .ui-icon {
  width: 21px;
  height: 21px;
}
@media (min-width: 430px) {
  .empty-action {
    min-width: 124px;
    padding: 0 15px;
    display: flex;
    gap: 7px;
    font-weight: 750;
  }
  .empty-action span {
    display: inline;
  }
}

/* Touch-first departure-time wheel inspired by the supplied scrolling reference. */
.time-field {
  gap: 11px;
}
.time-field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.time-field-heading small {
  color: #81908b;
  font-size: 10px;
  font-weight: 550;
}
.time-wheel {
  position: relative;
  height: 162px;
  overflow: hidden;
  border: 1px solid #dbe6e1;
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fbfa, #fff 48%, #f8fbfa);
  box-shadow:
    0 12px 30px rgb(13 55 45 / 7%) inset,
    0 1px 0 #fff;
}
.time-wheel-scroll {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  padding: 54px 0;
}
.time-wheel-scroll::-webkit-scrollbar {
  display: none;
}
.time-wheel-item {
  width: 100%;
  height: 54px;
  padding: 0;
  border: 0;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #82908b;
  background: transparent;
  opacity: 0.42;
  transform: scale(0.88);
  transition: opacity 0.18s, transform 0.18s, color 0.18s;
}
.time-wheel-item b {
  font-size: 24px;
  letter-spacing: -0.8px;
}
.time-wheel-item span {
  font-size: 13px;
  font-weight: 700;
}
.time-wheel-item.selected {
  color: #006b57;
  opacity: 1;
  transform: scale(1);
}
.time-wheel-item.selected b {
  font-size: 30px;
}
.time-wheel-focus {
  position: absolute;
  z-index: 1;
  top: 54px;
  left: 12px;
  right: 12px;
  height: 54px;
  border: 1px solid #a7ead8;
  border-radius: 17px;
  background: linear-gradient(135deg, #d9fff4, #ecfff9);
  box-shadow: 0 8px 22px rgb(0 135 109 / 10%);
}
.time-wheel-fade {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  height: 43px;
  pointer-events: none;
}
.time-wheel-fade.top {
  top: 0;
  background: linear-gradient(#f9fbfa, transparent);
}
.time-wheel-fade.bottom {
  bottom: 0;
  background: linear-gradient(transparent, #f9fbfa);
}
.handover-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 11px 14px;
  border-radius: 16px;
  color: #547069;
  background: #f1f7f4;
  font-size: 12px;
  font-weight: 650;
}
.handover-wait .ui-icon {
  width: 20px;
  height: 20px;
  color: #00866d;
}

/* Explicit turn-by-turn navigation actions for offers and active handovers. */
.spot-actions {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px;
}
.route-button {
  min-height: 56px;
  border: 1px solid #cfe5de;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #006b57;
  background: linear-gradient(145deg, #f1fff9, #e5faf3);
  text-decoration: none;
  box-shadow: 0 8px 20px rgb(0 107 87 / 7%);
}
.route-button .ui-icon {
  width: 21px;
  height: 21px;
}
.route-button span {
  font-size: 9px;
  font-weight: 800;
}
.spot-actions .btn {
  min-width: 0;
  padding-inline: 12px;
  font-size: 13px;
}
.spot-actions .btn .ui-icon {
  width: 18px;
  height: 18px;
}
.handover-route {
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid #cfe9e1;
  border-radius: 17px;
  display: grid;
  grid-template-columns: 23px 1fr 18px;
  gap: 10px;
  align-items: center;
  color: #006b57;
  background: linear-gradient(135deg, #e9fff8, #f6fffc);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}
.handover-route .ui-icon:last-child {
  width: 17px;
  height: 17px;
}
.route-button:active,
.handover-route:active {
  transform: scale(0.98);
}

/* Generated ParkSwap brand mark paired with a crisp typographic wordmark. */
.brand-image {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgb(0 77 63 / 17%));
}
.brand {
  gap: 7px;
  letter-spacing: -1.2px;
}
.auth-brand .brand-image {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 9px 16px rgb(0 24 20 / 27%));
}
.hero-brand-symbol {
  position: absolute !important;
  z-index: 2 !important;
  top: 32%;
  right: 17%;
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgb(0 24 20 / 35%));
  animation: hero-mark-float 4s ease-in-out infinite;
}
@keyframes hero-mark-float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-7px) rotate(2deg);
  }
}
@media (max-width: 420px) {
  .brand-image {
    width: 38px;
    height: 38px;
  }
  .brand {
    gap: 5px;
    font-size: 21px;
  }
  .hero-brand-symbol {
    top: 30%;
    right: 15%;
    width: 86px;
    height: 86px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-brand-symbol {
    animation: none;
  }
}

/* Generated raster icon pack with optical, rather than box-only, centering. */
.nav-image {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  object-position: center;
  transform: translateZ(0);
}
.topbar,
.top-actions,
.location-chip,
.credit-pill {
  align-items: center;
}
.location-chip {
  display: inline-flex;
  justify-content: center;
  gap: 5px;
  line-height: 1;
}
.location-chip .chip-image {
  width: 27px;
  height: 27px;
  margin: -3px -2px -3px -4px;
}
.credit-pill {
  justify-content: center;
  line-height: 1;
}
.nav-item .nav-image {
  width: 38px;
  height: 38px;
  margin: -5px auto -3px;
  filter: grayscale(1) saturate(0.2) opacity(0.58);
  transition: filter 0.2s, transform 0.2s;
}
.nav-item.active .nav-image {
  filter: none;
  transform: none;
}
.map-search button .nav-image {
  width: 35px;
  height: 35px;
}
.empty-map .empty-icon .nav-image {
  width: 46px;
  height: 46px;
}
.activity-icon {
  overflow: hidden;
}
.activity-icon .nav-image {
  width: 43px;
  height: 43px;
}
.activity-page .empty-icon .nav-image {
  width: 64px;
  height: 64px;
  margin: auto;
}
@media (max-width: 420px) {
  .top-actions {
    gap: 6px;
  }
  .location-chip {
    min-width: 0;
  }
  .nav-item .nav-image {
    width: 38px;
    height: 38px;
  }
}

/* Keep the stronger glass recipe after the base floating-nav declaration. */
.bottom-nav {
  background: linear-gradient(145deg, rgb(255 255 255 / 76%), rgb(237 250 246 / 55%));
  border-color: rgb(255 255 255 / 88%);
  box-shadow:
    0 20px 56px rgb(7 44 34 / 18%),
    0 1px 0 #fff inset,
    0 -1px 0 rgb(91 157 139 / 10%) inset;
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
}

/* ParkSwap glassOS: one Apple-inspired surface language across every view. */
.app.premium {
  background:
    radial-gradient(circle at 8% 14%, rgb(113 229 201 / 11%), transparent 27%),
    radial-gradient(circle at 92% 48%, rgb(128 178 255 / 9%), transparent 29%),
    linear-gradient(180deg, #f7faf9, #f1f6f4 58%, #f7faf9);
}
.page:not(.map-page) {
  background: transparent;
}
.premium-card,
.activity-card,
.spot-card,
.empty-map,
.offer-card,
.settings-card {
  border: 1px solid rgb(255 255 255 / 86%);
  background: linear-gradient(145deg, rgb(255 255 255 / 80%), rgb(240 249 246 / 58%));
  box-shadow:
    0 20px 52px rgb(12 48 39 / 10%),
    0 1px 0 #fff inset,
    0 -1px 0 rgb(80 143 126 / 8%) inset;
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
}
.map-search {
  border: 1px solid rgb(255 255 255 / 84%);
  background: linear-gradient(145deg, rgb(255 255 255 / 79%), rgb(241 250 247 / 61%));
  box-shadow:
    0 16px 42px rgb(12 47 38 / 13%),
    0 1px 0 #fff inset;
  backdrop-filter: blur(28px) saturate(1.48);
  -webkit-backdrop-filter: blur(28px) saturate(1.48);
}
.map-status,
.live-label {
  border: 1px solid rgb(255 255 255 / 14%);
  background: rgb(15 38 32 / 86%);
  box-shadow:
    0 12px 30px rgb(3 25 19 / 20%),
    0 1px 0 rgb(255 255 255 / 15%) inset;
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
}
.input,
.time-wheel,
.location-preview,
.handover-wait {
  border-color: rgb(255 255 255 / 88%);
  background: linear-gradient(145deg, rgb(255 255 255 / 74%), rgb(239 247 244 / 58%));
  box-shadow:
    0 10px 28px rgb(14 49 40 / 6%),
    0 1px 0 #fff inset;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
.input:focus {
  border-color: rgb(0 168 137 / 42%);
  background: rgb(255 255 255 / 88%);
  box-shadow:
    0 0 0 4px rgb(0 168 137 / 10%),
    0 14px 34px rgb(14 49 40 / 8%),
    0 1px 0 #fff inset;
}
.spot-metrics div,
.trust-note,
.spot-note {
  border: 1px solid rgb(255 255 255 / 70%);
  background: rgb(241 247 245 / 70%);
  box-shadow: 0 1px 0 #fff inset;
}
.btn,
.route-button,
.handover-route,
.empty-action {
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.btn:active,
.empty-action:active {
  transform: scale(0.975);
}
.btn-ghost,
.route-button,
.handover-route {
  border-color: rgb(255 255 255 / 82%);
  background: linear-gradient(145deg, rgb(255 255 255 / 73%), rgb(222 251 243 / 58%));
  box-shadow:
    0 12px 28px rgb(0 91 73 / 8%),
    0 1px 0 #fff inset;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.auth-tabs {
  border: 1px solid rgb(255 255 255 / 80%);
  background: rgb(235 242 239 / 68%);
  box-shadow: 0 1px 0 #fff inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.auth-tabs .active {
  background: rgb(255 255 255 / 84%);
  box-shadow:
    0 8px 22px rgb(14 48 40 / 9%),
    0 1px 0 #fff inset;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .premium-card,
  .activity-card,
  .spot-card,
  .empty-map,
  .settings-card,
  .topbar,
  .bottom-nav,
  .map-search {
    background: rgb(250 253 252 / 96%);
  }
}

/* Native-feeling camera/gallery avatar flow. */
.avatar,
.profile-avatar {
  overflow: hidden;
}
.avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.avatar-editor {
  position: relative;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 29px;
  background: transparent;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.avatar-edit-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 3px solid #07836c;
  border-radius: 50%;
  color: #006b57;
  background: rgb(255 255 255 / 91%);
  box-shadow: 0 8px 18px rgb(0 41 34 / 24%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 18px;
  font-weight: 700;
}
.avatar-input {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.avatar-sheet-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgb(5 24 19 / 26%);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  animation: avatar-backdrop-in 0.22s ease both;
}
.avatar-sheet-backdrop[hidden] {
  display: none;
}
.avatar-sheet {
  width: min(430px, 100%);
  padding: 10px 12px 12px;
  border: 1px solid rgb(255 255 255 / 86%);
  border-radius: 28px;
  background: linear-gradient(155deg, rgb(255 255 255 / 91%), rgb(238 249 246 / 80%));
  box-shadow:
    0 28px 80px rgb(0 27 21 / 28%),
    0 1px 0 #fff inset;
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  animation: avatar-sheet-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sheet-handle {
  width: 38px;
  height: 5px;
  margin: 1px auto 13px;
  border-radius: 99px;
  background: rgb(80 103 96 / 28%);
}
.avatar-sheet h2,
.avatar-sheet p {
  text-align: center;
}
.avatar-sheet h2 {
  margin: 0;
  font-size: 21px;
}
.avatar-sheet p {
  margin: 5px 0 14px;
  color: #73827d;
  font-size: 12px;
}
.avatar-sheet button {
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 0;
  border-radius: 17px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  color: #12352c;
  background: rgb(255 255 255 / 62%);
  text-align: left;
  font-size: 14px;
}
.avatar-sheet button + button {
  margin-top: 7px;
}
.avatar-sheet button span {
  font-size: 22px;
  text-align: center;
}
.avatar-sheet .avatar-remove {
  color: #a12d36;
}
.avatar-sheet .avatar-cancel {
  display: block;
  color: #006b57;
  background: transparent;
  text-align: center;
  font-weight: 750;
}
@keyframes avatar-sheet-in {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes avatar-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .avatar-sheet,
  .avatar-sheet-backdrop { animation: none; }
}

/* Dark liquid-glass primary actions, replacing the former solid green fill. */
.btn-primary,
.empty-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 19%);
  color: #fff;
  background:
    radial-gradient(circle at 24% -10%, rgb(71 235 195 / 24%), transparent 47%),
    linear-gradient(145deg, rgb(10 40 33 / 91%), rgb(4 24 20 / 86%) 62%, rgb(7 52 42 / 90%));
  box-shadow:
    0 16px 34px rgb(1 27 21 / 25%),
    0 1px 0 rgb(255 255 255 / 27%) inset,
    0 -1px 0 rgb(0 0 0 / 30%) inset,
    0 0 0 1px rgb(0 0 0 / 9%);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  text-shadow: 0 1px 2px rgb(0 0 0 / 28%);
}
.btn-primary::after,
.empty-action::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 1px 12px auto;
  height: 42%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgb(255 255 255 / 13%), transparent);
}
.btn-primary:hover,
.btn-primary:focus-visible,
.empty-action:hover,
.empty-action:focus-visible {
  filter: brightness(1.1) saturate(1.08);
  box-shadow:
    0 19px 40px rgb(1 27 21 / 28%),
    0 1px 0 rgb(255 255 255 / 32%) inset,
    0 -1px 0 rgb(0 0 0 / 30%) inset;
}

/* Neutral liquid-glass selection for the departure-time wheel. */
.time-wheel-item.selected {
  color: #15231f;
  text-shadow: 0 1px 0 rgb(255 255 255 / 74%);
}
.time-wheel-focus {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 94%);
  background:
    radial-gradient(circle at 18% -25%, rgb(255 255 255 / 95%), transparent 48%),
    linear-gradient(145deg, rgb(255 255 255 / 68%), rgb(220 229 226 / 42%));
  box-shadow:
    0 14px 34px rgb(22 47 40 / 13%),
    0 1px 0 #fff inset,
    0 -1px 0 rgb(72 99 91 / 12%) inset,
    0 0 0 1px rgb(131 155 148 / 8%);
  backdrop-filter: blur(24px) saturate(1.28);
  -webkit-backdrop-filter: blur(24px) saturate(1.28);
}
.time-wheel-focus::before {
  content: "";
  position: absolute;
  inset: 2px 13px auto;
  height: 45%;
  border-radius: 15px 15px 50% 50%;
  background: linear-gradient(180deg, rgb(255 255 255 / 64%), transparent);
}
.time-wheel-focus::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 150%;
  top: -42%;
  left: -18%;
  transform: rotate(19deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 24%), transparent);
}

/* Compact offer composer: the primary action stays visible on phone screens. */
@media (max-width: 480px) and (max-height: 920px) {
  .offer-page {
    padding-top: 10px;
    padding-bottom: 104px;
  }
  .offer-page .section-heading {
    padding: 2px 2px 7px;
  }
  .offer-page .section-heading .eyebrow {
    font-size: 9px;
  }
  .offer-page .section-heading h1 {
    margin: 4px 0 5px;
    font-size: 27px;
    line-height: 1.05;
  }
  .offer-page .section-heading p {
    max-width: 345px;
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
  }
  .offer-page form.stack {
    gap: 8px;
  }
  .offer-page .offer-card {
    gap: 11px;
    padding: 13px;
    border-radius: 22px;
  }
  .offer-page .field {
    gap: 5px;
    font-size: 11px;
  }
  .offer-page .location-preview {
    min-height: 58px;
    padding: 9px 11px;
    gap: 10px;
    border-radius: 15px;
  }
  .offer-page .location-preview b {
    font-size: 12px;
  }
  .offer-page .location-preview small {
    font-size: 10px;
  }
  .offer-page .input {
    min-height: 49px;
    padding: 12px 13px;
    border-radius: 15px;
  }
  .offer-page .time-field {
    gap: 6px;
  }
  .offer-page .time-field-heading small {
    font-size: 9px;
  }
  .offer-page .time-wheel {
    height: 132px;
    border-radius: 20px;
  }
  .offer-page .time-wheel-scroll {
    padding: 39px 0;
  }
  .offer-page .time-wheel-focus {
    top: 39px;
  }
  .offer-page .time-wheel-fade {
    height: 31px;
  }
  .offer-page .trust-note {
    gap: 8px;
    margin: 0;
    padding: 9px 11px;
    border-radius: 15px;
    font-size: 9px;
    line-height: 1.3;
  }
  .offer-page .trust-note .ui-icon {
    width: 18px;
    height: 18px;
  }
  .offer-page .trust-note b {
    display: inline;
    margin-right: 3px;
  }
  .offer-page .btn-primary {
    min-height: 51px;
  }
}
@media (max-width: 480px) and (max-height: 700px) {
  .offer-page {
    padding-top: 6px;
  }
  .offer-page .section-heading {
    padding-bottom: 3px;
  }
  .offer-page .section-heading p {
    display: none;
  }
  .offer-page .offer-card {
    gap: 9px;
    padding: 11px;
  }
  .offer-page .time-wheel {
    height: 108px;
  }
  .offer-page .time-wheel-scroll {
    padding: 27px 0;
  }
  .offer-page .time-wheel-focus {
    top: 27px;
  }
  .offer-page .time-wheel-fade {
    height: 22px;
  }
}

/* Fixed interaction canvases: only the map and minute wheel handle gestures. */
body.lock-page {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}
.app.view-map,
.app.view-offer,
.app.view-activity,
.app.view-profile {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
.app.view-map .map-page,
.app.view-offer .offer-page,
.app.view-activity .activity-page,
.app.view-profile .profile-page {
  overscroll-behavior: none;
}
.app.view-activity .activity-page {
  height: 100%;
  min-height: 0;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app.view-activity .activity-list {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 14px;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 26px;
  background: linear-gradient(145deg, rgb(255 255 255 / 72%), rgb(236 248 244 / 54%));
  box-shadow:
    0 20px 52px rgb(12 48 39 / 9%),
    0 1px 0 #fff inset;
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  scrollbar-width: none;
}
.app.view-activity .activity-list::-webkit-scrollbar {
  display: none;
}
.app.view-activity .activity-card {
  margin: 0;
  border-radius: 18px;
  box-shadow: none;
}
.app.view-activity .activity-card + .activity-card {
  margin-top: 7px;
}
.app.view-activity .activity-list > .empty {
  min-height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
}

/* Functional account destinations: security controls and persistent support. */
.account-page {
  display: grid;
  gap: 13px;
  padding-bottom: 116px;
}
.page-back {
  width: max-content;
  min-height: 34px;
  padding: 5px 11px 5px 8px;
  border: 1px solid rgb(255 255 255 / 84%);
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #006b57;
  background: rgb(255 255 255 / 66%);
  box-shadow: 0 7px 20px rgb(10 55 44 / 7%), 0 1px 0 #fff inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-weight: 750;
}
.page-back:first-letter {
  font-size: 23px;
  line-height: 0;
}
.account-page .section-heading {
  padding: 0 2px 2px;
}
.account-page .section-heading h1 {
  margin-block: 4px 5px;
}
.account-page .section-heading p {
  font-size: 13px;
}
.account-card {
  padding: 17px;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 23px;
  background: linear-gradient(145deg, rgb(255 255 255 / 79%), rgb(237 249 245 / 56%));
  box-shadow: 0 18px 46px rgb(12 48 39 / 9%), 0 1px 0 #fff inset;
  backdrop-filter: blur(25px) saturate(1.38);
  -webkit-backdrop-filter: blur(25px) saturate(1.38);
}
.security-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #007a64;
  background: linear-gradient(145deg, rgb(222 255 247 / 80%), rgb(248 253 251 / 67%));
}
.security-summary .ui-icon {
  width: 31px;
  height: 31px;
}
.security-summary b,
.security-summary span {
  display: block;
}
.security-summary span {
  margin-top: 2px;
  color: #61766f;
  font-size: 11px;
  line-height: 1.4;
}
.account-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.account-card-heading h2 {
  margin: 3px 0 0;
  font-size: 18px;
}
.account-card-heading > strong {
  min-width: 34px;
  height: 34px;
  padding-inline: 8px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  color: #006b57;
  background: #dcfff5;
}
.account-card > p {
  margin: 8px 0 12px;
  font-size: 12px;
}
.account-card .btn-ghost:disabled {
  opacity: 0.45;
  cursor: default;
}
.faq-card > .eyebrow {
  display: block;
  margin-bottom: 6px;
}
.faq-card details {
  border-top: 1px solid rgb(95 129 119 / 12%);
}
.faq-card summary {
  padding: 14px 2px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: #17362e;
  font-size: 13px;
  font-weight: 750;
  list-style: none;
}
.faq-card summary::-webkit-details-marker {
  display: none;
}
.faq-card summary::after {
  content: "+";
  color: #00866d;
  font-size: 20px;
  font-weight: 500;
}
.faq-card details[open] summary::after {
  content: "−";
}
.faq-card details p {
  margin: -4px 0 14px;
  padding-right: 16px;
  font-size: 12px;
}
.support-message {
  min-height: 112px;
  resize: vertical;
  font-family: inherit;
}
.ticket-list article {
  padding: 13px 2px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  border-top: 1px solid rgb(95 129 119 / 12%);
}
.ticket-list article:first-of-type {
  margin-top: 9px;
}
.ticket-list article b,
.ticket-list article span {
  display: block;
}
.ticket-list article span {
  margin-top: 2px;
  color: #7a8984;
  font-size: 9px;
}
.ticket-list article em {
  padding: 5px 8px;
  border-radius: 99px;
  align-self: start;
  color: #00735e;
  background: #dcfff5;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.ticket-list article p {
  grid-column: 1 / -1;
  margin: 3px 0 0;
  font-size: 11px;
}
.ticket-empty {
  margin-bottom: 0 !important;
}
@media (max-width: 480px) and (max-height: 760px) {
  .account-page {
    gap: 9px;
  }
  .account-page .section-heading p {
    display: none;
  }
  .account-card {
    padding: 13px;
  }
}
.app.view-offer .time-wheel-scroll {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
@media (max-width: 480px) and (min-height: 701px) and (max-height: 920px) {
  .profile-page .premium-metrics {
    gap: 10px;
    margin-top: 12px;
  }
  .profile-page .settings-card {
    margin-top: 15px;
  }
}

/* Compact Apple-inspired live offer screen. */
.active-offer-page {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 104px;
}
.active-offer-page .live-label {
  width: max-content;
  min-height: 31px;
  margin: 0 auto;
  padding: 7px 13px;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #007762;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 78%), rgb(226 247 241 / 54%));
  box-shadow:
    0 12px 28px rgb(13 55 44 / 10%),
    0 1px 0 #fff inset;
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}
.active-offer-page .live-label i {
  box-shadow: 0 0 0 5px rgb(0 194 160 / 11%);
}
.active-offer-page > h1 {
  max-width: 350px;
  margin: 0 auto;
  font-size: 29px;
  line-height: 1.06;
}
.active-offer-page .hero-timer {
  width: 170px;
  height: 170px;
  margin: 2px auto;
  border-width: 9px;
  border-color: rgb(215 255 245 / 82%);
  border-top-color: #00b997;
  background:
    radial-gradient(circle at 32% 23%, rgb(255 255 255 / 94%), rgb(241 251 248 / 69%));
  box-shadow:
    0 22px 50px rgb(0 95 76 / 12%),
    0 1px 0 #fff inset,
    0 -1px 0 rgb(55 124 106 / 10%) inset;
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
}
.active-offer-page .hero-timer::after {
  content: "";
  position: absolute;
  inset: 5px 18px auto;
  height: 38%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgb(255 255 255 / 58%), transparent);
  pointer-events: none;
}
.active-offer-page .hero-timer strong {
  position: relative;
  z-index: 1;
  font-size: 38px;
  letter-spacing: -1.5px;
}
.active-offer-page .hero-timer span {
  position: relative;
  z-index: 1;
}
.active-offer-page .premium-card {
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 22px;
  background: linear-gradient(145deg, rgb(255 255 255 / 79%), rgb(235 248 244 / 58%));
  box-shadow:
    0 18px 44px rgb(12 52 41 / 10%),
    0 1px 0 #fff inset;
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
}
.active-offer-page .premium-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}
.active-offer-page .premium-card p {
  margin: 6px 0 9px;
  font-size: 11px;
  line-height: 1.35;
}
.active-offer-page .status-row {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgb(239 250 246 / 67%);
  box-shadow: 0 1px 0 #fff inset;
  font-size: 12px;
}
.active-offer-page .status-row .pulse {
  width: 9px;
  height: 9px;
  margin: 0;
  box-shadow: 0 0 0 5px rgb(0 194 160 / 12%);
}
.active-offer-page .btn-danger {
  min-height: 50px;
  border: 1px solid rgb(255 255 255 / 80%);
  color: #a42731;
  background: linear-gradient(145deg, rgb(255 255 255 / 76%), rgb(255 229 231 / 57%));
  box-shadow:
    0 14px 34px rgb(128 31 40 / 11%),
    0 1px 0 #fff inset;
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}
@media (max-width: 480px) and (max-height: 700px) {
  .active-offer-page {
    gap: 7px;
    padding-top: 7px;
  }
  .active-offer-page .live-label {
    min-height: 27px;
    padding: 5px 11px;
    font-size: 9px;
  }
  .active-offer-page > h1 {
    font-size: 24px;
  }
  .active-offer-page .hero-timer {
    width: 142px;
    height: 142px;
    border-width: 8px;
  }
  .active-offer-page .hero-timer strong {
    font-size: 33px;
  }
  .active-offer-page .premium-card {
    padding: 10px;
  }
  .active-offer-page .premium-card p {
    margin-block: 4px 6px;
  }
  .active-offer-page .status-row {
    min-height: 35px;
    padding-block: 6px;
  }
  .active-offer-page .btn-danger {
    min-height: 46px;
  }
}

/* Bespoke line icons for avatar sources; no platform-dependent emoji. */
.avatar-sheet .avatar-source-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 11px;
  color: #006b57;
  background: linear-gradient(145deg, rgb(255 255 255 / 82%), rgb(224 248 241 / 62%));
  box-shadow:
    0 8px 18px rgb(4 65 51 / 9%),
    0 1px 0 #fff inset;
}
.avatar-sheet .avatar-source-icon .ui-icon {
  width: 20px;
  height: 20px;
}
.bottom-nav {
  transition: opacity 0.22s ease, transform 0.25s ease;
}
.app:has(.avatar-sheet-backdrop:not([hidden])) .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
}

/* Compact profile overview: all account actions remain above the floating nav. */
@media (max-width: 480px) and (max-height: 920px) {
  .profile-page {
    padding-top: 10px;
    padding-bottom: 104px;
  }
  .profile-page .profile-hero {
    min-height: 120px;
    padding: 14px;
    gap: 12px;
    border-radius: 24px;
  }
  .profile-page .profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    font-size: 29px;
  }
  .profile-page .avatar-editor {
    border-radius: 23px;
  }
  .profile-page .avatar-edit-badge {
    width: 26px;
    height: 26px;
    border-width: 3px;
    font-size: 15px;
  }
  .profile-page .profile-identity h1 {
    margin: 3px 0 2px;
    font-size: 21px;
  }
  .profile-page .profile-identity p {
    font-size: 12px;
  }
  .profile-page .verified {
    font-size: 9px;
  }
  .profile-page .premium-metrics {
    gap: 8px;
    margin-top: 8px;
  }
  .profile-page .premium-metrics > div {
    min-height: 75px;
    padding: 9px;
    border-radius: 18px;
  }
  .profile-page .premium-metrics span {
    font-size: 8px;
  }
  .profile-page .premium-metrics strong {
    margin-top: 3px;
    font-size: 18px;
  }
  .profile-page .premium-metrics .ui-icon {
    width: 18px;
    height: 18px;
  }
  .profile-page .settings-card {
    margin-top: 8px;
    border-radius: 20px;
  }
  .profile-page .settings-card button {
    min-height: 49px;
    padding: 10px 13px;
    grid-template-columns: 21px 1fr auto;
    gap: 9px;
  }
  .profile-page .settings-card button .ui-icon {
    width: 20px;
    height: 20px;
  }
  .profile-page .settings-card button > span b {
    font-size: 12px;
  }
  .profile-page .settings-card button > span small {
    margin-top: 1px;
    font-size: 9px;
  }
  .profile-page .settings-card button i {
    font-size: 19px;
  }
}
@media (max-width: 480px) and (max-height: 700px) {
  .profile-page {
    padding-top: 6px;
  }
  .profile-page .profile-hero {
    min-height: 104px;
    padding: 11px;
  }
  .profile-page .profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 19px;
  }
  .profile-page .premium-metrics {
    gap: 7px;
    margin-top: 6px;
  }
  .profile-page .premium-metrics > div {
    min-height: 64px;
    padding: 7px;
  }
  .profile-page .settings-card {
    margin-top: 6px;
  }
  .profile-page .settings-card button {
    min-height: 44px;
    padding-block: 7px;
  }
}
