:root {
  --bg: #f6f0ff;
  --surface: #ffffff;
  --ink: #2c2344;
  --muted: #6b638c;
  --line: #e6dbf6;
  --brand: #8e6bf0;
  --brand-deep: #2b2550;
  --accent: #f59e0b;
  --ok: #36d6a8;
  --danger: #ff6b6b;
  --shadow: 0 10px 30px rgba(43, 37, 80, 0.08);
  --radius: 18px;
  --nav-h: 72px;
  --header-h: 88px;
  --home-gutter: 24px;
  font-family: 'Segoe UI', 'Avenir Next', 'Trebuchet MS', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #f7f2ff 0%, #efe6ff 42%, #e4d8fb 100%);
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 24px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  padding: 18px var(--home-gutter) 16px;
  background: linear-gradient(180deg, #faf5ff 0%, #eee4ff 55%, #e2d7ff 100%);
  color: var(--brand-deep);
  box-shadow: none;
}

.brand,
.brand-home-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  background: #dcc9ff;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo-fallback {
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 1.25rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand strong,
#brandTitle {
  font-size: 1.25rem;
  letter-spacing: 0;
  color: var(--brand-deep);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  opacity: 1;
}

.brand-session {
  display: none;
}

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

.header-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--brand, #6b3df0);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(109, 61, 240, 0.22);
}

.header-login-btn[hidden] {
  display: none !important;
}

.header-login-btn:hover {
  opacity: 0.94;
}

.favorites-header-btn {
  width: 64px;
  min-height: 58px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.favorites-header-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 34px;
}

.icon-btn,
.primary-btn,
.ghost-btn,
.danger-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.icon-btn:active,
.primary-btn:active,
.ghost-btn:active,
.danger-btn:active {
  transform: scale(0.98);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.primary-btn {
  background: var(--brand);
  color: #fff;
  padding: 0.85rem 1.2rem;
  font-weight: 700;
}

.primary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ghost-btn {
  background: #fff;
  color: var(--brand-deep);
  border: 1px solid rgba(109, 40, 217, 0.18);
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.danger-btn {
  background: #fee2e2;
  color: var(--danger);
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.content {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 16px;
}

body.route-home .content {
  padding: 0;
  background: transparent;
}

.home-layout {
  width: 100%;
}

.home-filters,
.home-phone-preview {
  display: none;
}

.home-android {
  animation: home-fade-up 0.35s ease both;
  min-width: 0;
}

/* Premium home shell */
body.route-home {
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(186, 160, 255, 0.45), transparent 58%),
    radial-gradient(980px 420px at 90% 0%, rgba(142, 107, 240, 0.28), transparent 56%),
    radial-gradient(900px 520px at 50% 100%, rgba(196, 177, 255, 0.22), transparent 62%),
    linear-gradient(180deg, #f3ecff 0%, #e9defe 46%, #ddd0f5 100%);
}

body.route-home .topbar {
  background: rgba(252, 250, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(214, 201, 240, 0.55);
  padding-top: 14px;
  padding-bottom: 12px;
}

body.route-home .bottom-nav {
  border: 1px solid rgba(214, 201, 240, 0.7);
  box-shadow: 0 12px 34px rgba(43, 37, 80, 0.12);
}

@media (min-width: 960px) {
  body.route-home .content {
    width: min(1240px, 100%);
    padding: 12px 20px 28px;
  }

  .home-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  .home-android {
    border: 1px solid rgba(220, 210, 242, 0.95);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(43, 37, 80, 0.06);
    overflow: hidden;
  }

  .home-filters {
    display: block;
    position: sticky;
    top: calc(var(--header-h, 88px) + 8px);
    max-height: calc(100vh - var(--header-h, 88px) - var(--nav-h, 72px) - 24px);
    overflow-y: auto;
    padding: 18px 16px 22px;
    border: 1px solid rgba(220, 210, 242, 0.95);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(43, 37, 80, 0.05);
    scrollbar-width: thin;
  }

  .home-filters-title {
    margin: 0 0 16px;
    color: var(--brand-deep);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .home-filters-section {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0eafb;
  }

  .home-filters-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .home-filters-heading {
    margin: 0 0 10px;
    color: #2b2148;
    font-size: 0.82rem;
    font-weight: 800;
  }

  .home-filters-radios,
  .home-cuisine-list {
    display: grid;
    gap: 8px;
  }

  .home-filter-radio,
  .home-filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3a3158;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
  }

  .home-filter-radio input,
  .home-filter-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand, #6b3df0);
    cursor: pointer;
  }

  .home-filters-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .home-filter-pill {
    border: 1px solid #d8c9f5;
    border-radius: 999px;
    background: #f7f2ff;
    color: #3d2a7a;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
  }

  .home-filter-pill.is-active {
    border-color: var(--brand, #6b3df0);
    background: #ede3ff;
    color: var(--brand-deep, #2d0c75);
    box-shadow: inset 0 0 0 1px rgba(109, 61, 240, 0.15);
  }

  .home-cuisine-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 10px;
    min-height: 40px;
    border: 1px solid #e0d5f5;
    border-radius: 12px;
    background: #fbf9ff;
  }

  .home-cuisine-search-icon {
    color: #7a7096;
    display: grid;
    place-items: center;
  }

  .home-cuisine-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #1f153b;
    font-size: 0.84rem;
    outline: none;
  }

  .home-cuisine-more {
    margin-top: 10px;
    border: 0;
    background: transparent;
    color: var(--brand, #6b3df0);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-align: left;
  }

  .home-filters-empty {
    margin: 0;
    color: #7a7096;
    font-size: 0.8rem;
  }
}

@media (min-width: 1280px) {
  body.route-home .content {
    width: min(1520px, 100%);
  }

  .home-layout {
    grid-template-columns: 220px minmax(0, 1fr) minmax(420px, 460px);
    gap: 18px;
    align-items: start;
  }

  .home-phone-preview {
    display: block;
    position: sticky;
    top: calc(var(--header-h, 88px) + 8px);
    justify-self: stretch;
  }

  .home-promo-rail {
    display: grid;
    gap: 12px;
    justify-items: stretch;
  }

  .home-promo-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 12px;
    align-items: stretch;
  }

  .home-get-app {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(148px, 168px);
    gap: 14px 16px;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 16px 15px 15px;
    border: 1px solid rgba(214, 201, 240, 0.95);
    border-radius: 22px;
    background:
      radial-gradient(120% 90% at 0% 0%, rgba(186, 160, 255, 0.16), transparent 52%),
      linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 243, 255, 0.96) 100%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.85) inset,
      0 14px 28px rgba(43, 37, 80, 0.06);
  }

  .home-get-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(109, 61, 240, 0.35), transparent);
    pointer-events: none;
  }

  .home-get-app-copy {
    min-width: 0;
  }

  .home-get-app-kicker {
    margin: 0 0 7px;
    color: #6b3df0;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .home-get-app-title {
    margin: 0 0 5px;
    color: #171225;
    font-size: 1.22rem;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  .home-get-app-title span {
    color: var(--brand, #6b3df0);
  }

  .home-get-app-subtitle {
    margin: 0 0 10px;
    color: #6b6280;
    font-size: 0.74rem;
    line-height: 1.4;
    max-width: 34ch;
    font-weight: 500;
  }

  .home-get-app-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    border-top: 1px solid rgba(226, 216, 244, 0.95);
  }

  .home-get-app-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(226, 216, 244, 0.85);
  }

  .home-get-app-dot {
    width: 6px;
    height: 6px;
    margin-top: 5px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: var(--brand, #6b3df0);
    box-shadow: 0 0 0 3px rgba(109, 61, 240, 0.12);
  }

  .home-get-app-feature-text {
    display: grid;
    gap: 1px;
    min-width: 0;
  }

  .home-get-app-feature-text strong {
    color: #21183a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }

  .home-get-app-feature-text em {
    font-style: normal;
    color: #817897;
    font-size: 0.64rem;
    font-weight: 500;
    line-height: 1.25;
  }

  .home-get-app-stores {
    display: grid;
    gap: 8px;
  }

  .home-store-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 0.5rem 0.8rem;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(20, 14, 40, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  }

  .home-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(20, 14, 40, 0.22);
    filter: brightness(1.04);
  }

  .home-store-btn:active {
    transform: translateY(0);
  }

  .home-store-btn span {
    display: grid;
    gap: 1px;
    line-height: 1.05;
  }

  .home-store-btn small {
    font-size: 0.54rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.78;
  }

  .home-store-btn strong {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: -0.015em;
  }

  .home-store-btn-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
  }

  .home-store-btn--apple {
    background: linear-gradient(180deg, #2a2438 0%, #171225 100%);
    color: #fff;
  }

  .home-store-btn--apple .home-store-btn-icon {
    color: #fff;
  }

  .home-store-btn--apple small,
  .home-store-btn--apple strong {
    color: #fff;
  }

  .home-store-btn--play {
    background: linear-gradient(180deg, #ffffff 0%, #f4f0fc 100%);
    border-color: rgba(206, 194, 236, 0.95);
    color: #171225;
    box-shadow: 0 6px 16px rgba(43, 37, 80, 0.08);
  }

  .home-store-btn--play small {
    color: #7a7096;
    opacity: 1;
  }

  .home-store-btn--play strong {
    color: #171225;
  }

  .home-store-btn--play:hover {
    border-color: #c3b4e8;
    box-shadow: 0 10px 20px rgba(43, 37, 80, 0.12);
  }

  .home-phone-stage {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
  }

  .home-phone-glow {
    position: absolute;
    inset: 18% 8% auto;
    height: 58%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.28) 0%, rgba(139, 92, 246, 0) 70%);
    filter: blur(8px);
    animation: home-phone-glow 4.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
  }

  .home-phone-frame {
    position: relative;
    z-index: 1;
    width: 220px;
    padding: 9px;
    border-radius: 32px;
    background: linear-gradient(160deg, #2a2148 0%, #171225 100%);
    box-shadow:
      0 16px 34px rgba(32, 18, 70, 0.26),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: home-phone-float 5.2s ease-in-out infinite;
    transform-origin: center bottom;
  }

  .home-phone-bezel {
    border-radius: 28px;
    overflow: hidden;
    background: #120f27;
  }

  .home-phone-notch {
    width: 86px;
    height: 18px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: #0b0914;
  }

  .home-phone-screen {
    position: relative;
    min-height: 460px;
    padding: 8px 10px 10px;
    background: linear-gradient(180deg, #f7f2ff 0%, #ffffff 42%);
    color: #241845;
    overflow: hidden;
  }

  .home-phone-reveal {
    opacity: 0;
    transform: translateY(8px);
    animation: home-phone-reveal 0.55s ease forwards;
    animation-delay: var(--d, 0s);
  }

  .home-phone-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #4b3d72;
    margin-bottom: 8px;
  }

  .home-phone-status-dots {
    width: 42px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #cbb6ff, #8e6bf0);
    background-size: 160% 100%;
    animation: home-phone-shimmer 2.8s linear infinite;
  }

  .home-phone-loc {
    display: grid;
    gap: 2px;
    margin-bottom: 8px;
  }

  .home-phone-loc strong {
    font-size: 0.78rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-phone-loc span {
    font-size: 0.66rem;
    color: #7a7096;
    font-weight: 600;
  }

  .home-phone-search {
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #e0d5f5;
    background: #fff;
    color: #8a819f;
    font-size: 0.7rem;
    margin-bottom: 10px;
  }

  .home-phone-search-caret::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 0.9em;
    margin-left: 2px;
    background: #8e6bf0;
    vertical-align: -0.1em;
    animation: home-phone-caret 1s steps(1) infinite;
  }

  .home-phone-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
  }

  .home-phone-services span {
    text-align: center;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.45rem 0.2rem;
    border-radius: 12px;
    background: #f1e9ff;
    color: #5b457f;
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
  }

  .home-phone-services span.is-active {
    background: var(--brand, #6b3df0);
    color: #fff;
    transform: translateY(-1px);
  }

  .home-phone-banner {
    position: relative;
    overflow: hidden;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2d0c75 0%, #6b3df0 70%);
    color: #fff;
    margin-bottom: 10px;
  }

  .home-phone-banner-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      105deg,
      transparent 35%,
      rgba(255, 255, 255, 0.28) 48%,
      transparent 62%
    );
    transform: translateX(-120%);
    animation: home-phone-banner-shine 3.8s ease-in-out infinite;
  }

  .home-phone-banner strong {
    position: relative;
    display: block;
    font-size: 0.82rem;
    margin-bottom: 2px;
  }

  .home-phone-banner p {
    position: relative;
    margin: 0;
    font-size: 0.66rem;
    opacity: 0.9;
  }

  .home-phone-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 6px;
  }

  .home-phone-store-viewport {
    height: 168px;
    overflow: hidden;
    margin-bottom: 10px;
    mask-image: linear-gradient(180deg, #000 78%, transparent);
  }

  .home-phone-store-track {
    display: grid;
    gap: 7px;
    animation: home-phone-store-scroll 14s linear infinite;
  }

  .home-phone-store-list {
    display: grid;
    gap: 7px;
  }

  .home-phone-store {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 8px;
    align-items: center;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ebe3f8;
  }

  .home-phone-store-media {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    background: #ede3ff;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--brand-deep);
  }

  .home-phone-store-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home-phone-store-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
  }

  .home-phone-store-copy strong {
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-phone-store-copy em {
    font-style: normal;
    font-size: 0.6rem;
    color: #7a7096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-phone-empty {
    margin: 0;
    font-size: 0.68rem;
    color: #7a7096;
  }

  .home-phone-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #ece4fb;
  }

  .home-phone-nav span {
    text-align: center;
    font-size: 0.58rem;
    font-weight: 700;
    color: #8a819f;
  }

  .home-phone-nav span.is-active {
    color: var(--brand, #6b3df0);
  }

  .home-phone-caption {
    display: none;
  }

  .home-logo-show {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 14px 12px 12px;
    border: 1px solid rgba(220, 210, 242, 0.95);
    border-radius: 20px;
    background:
      radial-gradient(120% 80% at 50% 0%, rgba(139, 92, 246, 0.08), transparent 55%),
      rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 22px rgba(43, 37, 80, 0.05);
    display: grid;
    grid-template-rows: auto 1fr auto;
  }

  .home-logo-show-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 8px;
  }

  .home-logo-show-head h3 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    color: #171225;
  }

  .home-logo-show-stage {
    position: relative;
    min-height: 210px;
  }

  .home-logo-show-slide {
    position: absolute;
    inset: 0;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 4px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .home-logo-show-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    z-index: 1;
  }

  .home-logo-show-media {
    width: 148px;
    height: 148px;
    border-radius: 28px;
    overflow: hidden;
    background: #efe9ff;
    display: grid;
    place-items: center;
    box-shadow: 0 14px 28px rgba(43, 37, 80, 0.14);
    color: #6b3df0;
    font-size: 1.35rem;
    font-weight: 800;
  }

  .home-logo-show-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home-logo-show-slide strong {
    max-width: 100%;
    font-size: 0.84rem;
    font-weight: 800;
    color: #171225;
    text-align: center;
    line-height: 1.2;
  }

  .home-logo-show-slide em {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 600;
    color: #7a7096;
    text-align: center;
  }

  .home-logo-show-progress {
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: #ebe4f8;
    overflow: hidden;
  }

  .home-logo-show-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b5cf6, #6b3df0);
    transition: width 0.35s ease;
  }

  @keyframes home-phone-float {
    0%,
    100% {
      transform: translateY(0) rotate(-0.25deg);
    }
    50% {
      transform: translateY(-7px) rotate(0.25deg);
    }
  }

  @keyframes home-phone-glow {
    0%,
    100% {
      opacity: 0.55;
      transform: scale(0.96);
    }
    50% {
      opacity: 0.95;
      transform: scale(1.04);
    }
  }

  @keyframes home-phone-reveal {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes home-phone-shimmer {
    0% {
      background-position: 0% 50%;
    }
    100% {
      background-position: 160% 50%;
    }
  }

  @keyframes home-phone-caret {
    0%,
    49% {
      opacity: 1;
    }
    50%,
    100% {
      opacity: 0;
    }
  }

  @keyframes home-phone-banner-shine {
    0%,
    55% {
      transform: translateX(-120%);
    }
    80%,
    100% {
      transform: translateX(120%);
    }
  }

  @keyframes home-phone-store-scroll {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-50%);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .home-phone-glow,
    .home-phone-frame,
    .home-phone-status-dots,
    .home-phone-search-caret::after,
    .home-phone-banner-shine,
    .home-phone-store-track,
    .home-phone-reveal {
      animation: none !important;
    }

    .home-phone-reveal {
      opacity: 1;
      transform: none;
    }
  }
}

@media (min-width: 1540px) {
  body.route-home .content {
    width: min(1640px, 100%);
  }

  .home-layout {
    grid-template-columns: 230px minmax(0, 1fr) minmax(460px, 500px);
    gap: 20px;
  }

  .home-promo-top {
    grid-template-columns: minmax(0, 1fr) 232px;
    gap: 14px;
  }

  .home-phone-frame {
    width: 232px;
  }

  .home-logo-show-media {
    width: 164px;
    height: 164px;
    border-radius: 32px;
  }

  .home-logo-show-stage {
    min-height: 236px;
  }
}

.home-hero-panel {
  margin: 0;
  padding: 20px var(--home-gutter) 18px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.home-search-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #e5dbf7;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(43, 37, 80, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-search-pill:focus-within {
  border-color: rgba(142, 107, 240, 0.45);
  box-shadow: 0 0 0 4px rgba(142, 107, 240, 0.1);
}

.home-search-icon {
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.home-search-pill input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #1f153b;
  font-size: 0.875rem;
  outline: none;
}

.home-search-pill input::placeholder {
  color: #7a7096;
}

.home-search-clear {
  border: 0;
  border-radius: 999px;
  background: #ede3ff;
  color: #2d1b69;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.home-location-row {
  width: 100%;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #faf7ff;
  border: 1px solid #efe8fb;
  border-radius: 16px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.home-location-row:hover {
  background: #f4efff;
  border-color: #e2d7f5;
}

.home-location-pin {
  font-size: 1rem;
  line-height: 1;
}

.home-location-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-location-label {
  color: #7a7096;
  font-size: 0.625rem;
}

.home-location-value {
  color: #1f153b;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-ad-carousel {
  position: relative;
  margin-top: 14px;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 12px 28px rgba(43, 37, 80, 0.08);
  background: #2b2550;
}

.home-ad-track,
.home-ad-slide {
  width: 100%;
  height: 100%;
}

.home-ad-slide {
  display: none;
  position: relative;
}

.home-ad-slide.active {
  display: block;
}

.home-ad-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-ad-sponsored {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.home-ad-skeleton {
  height: 180px;
  border-radius: 20px;
}

#homeVendorSlot {
  padding: 18px var(--home-gutter) 0;
  background: #fff;
}

#homeVendorSlot:empty {
  display: none;
  padding: 0;
}

#homeDynamic {
  padding: 18px var(--home-gutter) 28px;
  background: #fff;
}

.home-section {
  margin-bottom: 26px;
  animation: home-fade-up 0.4s ease both;
}

.home-section .section-heading {
  margin-bottom: 14px;
}

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

.more-stores-chip {
  border: 0;
  border-radius: 999px;
  background: #ede3ff;
  color: #2d1b69;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}

.vendor-logo-row,
.discovery-row {
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.vendor-logo-row::-webkit-scrollbar,
.discovery-row::-webkit-scrollbar,
.chip-row::-webkit-scrollbar {
  display: none;
}

.vendor-logo-row {
  display: block;
  overflow-x: hidden;
  overflow-y: visible;
  gap: 0;
  scroll-snap-type: none;
  touch-action: pan-x;
  cursor: grab;
}

.vendor-logo-row[data-vendor-loop='0'] {
  overflow-x: auto;
  cursor: default;
}

.vendor-logo-row.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.vendor-logo-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72px;
  gap: 16px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.discovery-row {
  grid-auto-columns: minmax(128px, 140px);
}

.vendor-logo-tile {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: center;
  -webkit-user-drag: none;
}

.vendor-logo-tile img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.vendor-logo-card {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.vendor-logo-card img,
.vendor-logo-card .media-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vendor-logo-label {
  display: block;
  margin-top: 8px;
  color: var(--brand-deep);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
}

.discovery-card {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}

.discovery-media {
  aspect-ratio: 1 / 1;
  background: #e5e7eb;
  overflow: hidden;
}

.discovery-media img,
.media-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 0.85rem;
}

.discovery-body {
  display: grid;
  gap: 2px;
  padding: 10px;
}

.discovery-body strong {
  font-size: 0.85rem;
  color: var(--brand-deep);
}

.chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid #e2d8f4;
  background: #fff;
  color: #3d3460;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: #cbb8f0;
  background: #faf7ff;
}

.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 14px rgba(142, 107, 240, 0.25);
}

.skeleton-block,
.skeleton-card,
.skeleton-chip {
  background: linear-gradient(90deg, #ece8f7 25%, #f7f4ff 50%, #ece8f7 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.2s linear infinite;
  border-radius: 14px;
}

.skeleton-block {
  height: 88px;
  margin-bottom: 14px;
}

.skeleton-card {
  min-height: 210px;
}

.skeleton-chip {
  width: 72px;
  height: 34px;
  border-radius: 999px;
}

@keyframes home-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes skeleton-shine {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.search-row {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 16px;
}

.search-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

.search-row input:focus {
  border-color: rgba(142, 107, 240, 0.45);
  box-shadow: 0 0 0 3px rgba(142, 107, 240, 0.12);
}

.section-title {
  margin: 0;
  font-size: 1.12rem;
  color: var(--brand-deep);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.restaurants-near-section .section-title {
  font-size: 1.18rem;
}

body.route-home #homeVendorSlot,
body.route-home #homeDynamic {
  background: transparent;
}

body.route-home .home-restaurant-grid .restaurant-card {
  border-color: #ebe3f7;
  border-radius: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.route-home .home-restaurant-grid .restaurant-card:hover {
  transform: translateY(-2px);
  border-color: #d8c9f3;
  box-shadow: 0 14px 28px rgba(43, 37, 80, 0.08);
}

body.route-home .vendor-logo-card {
  border-color: #ebe3f7;
  box-shadow: 0 6px 14px rgba(43, 37, 80, 0.04);
}

.home-faq {
  width: 100%;
  margin: 18px 0 10px;
  padding: 0 0 12px;
}

.home-faq-inner {
  width: 100%;
  margin: 0;
  padding: 22px 20px 10px;
  text-align: center;
  border: 1px solid rgba(220, 210, 242, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(43, 37, 80, 0.04);
}

.home-faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 61, 240, 0.28);
  background: #f4efff;
  color: #3d2a7a;
  font-size: 0.74rem;
  font-weight: 800;
}

.home-faq-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand, #6b3df0);
  box-shadow: 0 0 0 3px rgba(109, 61, 240, 0.14);
}

.home-faq-title {
  margin: 0 0 22px;
  color: #171225;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.home-faq-list {
  text-align: left;
  border-top: 1px solid #ebe4f6;
}

.home-faq-item {
  border-bottom: 1px solid #ebe4f6;
}

.home-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px;
  border: 0;
  background: transparent;
  color: #171225;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.home-faq-chevron {
  color: #7a7096;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}

.home-faq-item.is-open .home-faq-chevron {
  transform: rotate(180deg);
  color: var(--brand, #6b3df0);
}

.home-faq-answer {
  padding: 0 2px 16px;
}

.home-faq-answer p {
  margin: 0;
  color: #6b6280;
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 500;
}

@media (min-width: 960px) {
  .home-faq {
    margin-top: 20px;
  }

  .home-faq-inner {
    padding: 26px 28px 14px;
  }
}

@media (min-width: 1280px) {
  .home-faq {
    margin-top: 16px;
  }
}

.home-contact {
  width: 100%;
  margin: 6px 0 18px;
  padding: 0 0 8px;
}

.home-contact-inner {
  width: 100%;
  margin: 0;
  padding: 26px 20px 8px;
  border: 1px solid rgba(220, 210, 242, 0.95);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(248, 244, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 42%),
    #fff;
  box-shadow: 0 10px 24px rgba(43, 37, 80, 0.04);
}

.home-contact-copy {
  max-width: 34rem;
  margin: 0 0 8px;
}

.home-contact-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}

.home-contact-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: #dcc9ff;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(43, 37, 80, 0.08);
}

.home-contact-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-contact-logo-fallback {
  color: var(--brand-deep, #3d2a7a);
  font-weight: 800;
  font-size: 1.15rem;
}

.home-contact-brand-copy {
  min-width: 0;
}

.home-contact-kicker {
  margin: 0 0 6px;
  color: #6b3df0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-contact-title {
  margin: 0;
  color: #171225;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.home-contact-subtitle {
  margin: 0;
  max-width: 38ch;
  color: #6b6280;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 500;
}

.home-contact-lines {
  display: grid;
  margin-top: 10px;
}

.home-contact-line {
  display: grid;
  gap: 10px;
  padding: 18px 2px;
  border-top: 1px solid rgba(226, 216, 244, 0.95);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.home-contact-line:last-child {
  border-bottom: 1px solid rgba(226, 216, 244, 0.95);
}

.home-contact-line:hover,
.home-contact-line:focus-visible {
  background: linear-gradient(90deg, rgba(109, 61, 240, 0.05), transparent 70%);
  outline: none;
}

.home-contact-line:hover .home-contact-email strong,
.home-contact-line:focus-visible .home-contact-email strong {
  color: #5a2fd0;
}

.home-contact-line:hover .home-contact-go,
.home-contact-line:focus-visible .home-contact-go {
  transform: translateX(3px);
  color: #6b3df0;
  opacity: 1;
}

.home-contact-line-meta {
  display: grid;
  gap: 3px;
}

.home-contact-label {
  color: #171225;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.home-contact-hint {
  color: #7a7096;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
}

.home-contact-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.home-contact-email strong {
  color: #3d2a7a;
  font-size: clamp(0.92rem, 2.2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  word-break: break-word;
}

.home-contact-go {
  flex: 0 0 auto;
  color: #9a90b4;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.75;
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

@media (min-width: 860px) {
  .home-contact-inner {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.35fr);
    gap: 28px 40px;
    align-items: center;
    padding: 30px 28px 14px;
  }

  .home-contact-copy {
    margin: 0 0 16px;
    padding-bottom: 8px;
  }

  .home-contact-lines {
    margin-top: 0;
  }

  .home-contact-line {
    grid-template-columns: minmax(160px, 0.85fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 18px;
    padding: 20px 6px;
  }

  .home-contact-email {
    justify-content: flex-end;
    text-align: right;
  }

  .home-contact-email strong {
    font-size: 1.02rem;
  }
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

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

.home-restaurant-grid .restaurant-card .media {
  height: 120px;
}

.home-restaurant-grid .restaurant-card .body {
  padding: 10px 12px 12px;
}

.home-restaurant-grid .restaurant-card h3 {
  font-size: 0.92rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-restaurant-grid .meta,
.home-restaurant-grid .stats {
  font-size: 0.75rem;
}

.home-restaurant-grid .stats {
  gap: 8px;
  margin-top: 6px;
}

.home-restaurant-grid .badge-fast {
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.55rem;
  font-size: 0.68rem;
}

.home-restaurant-grid .restaurant-fav-btn {
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
}

.home-restaurant-grid .restaurant-store-logo {
  left: 10px;
  bottom: 8px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

@media (min-width: 960px) {
  .home-restaurant-grid .restaurant-card .media {
    height: 140px;
  }
}

.restaurant-card,
.menu-item-card,
.panel,
.cart-line,
.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: none;
}

.restaurant-card {
  overflow: hidden;
  cursor: pointer;
}

.restaurant-card .media {
  position: relative;
  height: 168px;
  background: #e5e7eb;
  overflow: hidden;
}

.restaurant-card .media img,
.menu-item-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.badge-fast {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(43, 37, 80, 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.restaurant-fav-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #58506e;
  box-shadow: none;
  cursor: pointer;
  padding: 0;
}

.restaurant-fav-btn.is-favorite {
  color: #ff6b6b;
}

.restaurant-store-logo {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.restaurant-store-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.restaurant-card .body,
.menu-item-card .body,
.panel,
.cart-line,
.order-card {
  padding: 16px 20px 20px;
}

.restaurant-card h3,
.menu-item-card h3,
.order-card h3 {
  margin: 0 0 4px;
  font-size: 1.0625rem;
  color: var(--brand-deep);
}

.meta,
.muted {
  color: var(--muted);
  font-size: 0.875rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

.rating-green {
  color: #36d6a8;
  font-weight: 700;
}

.restaurant-tag-row {
  margin-top: 10px;
}

.restaurant-tag {
  display: inline-flex;
  justify-content: center;
  min-width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #f3edff;
  color: #8e6bf0;
  font-size: 0.82rem;
  font-weight: 700;
}

.home-location-pin {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.menu-list {
  display: grid;
  gap: 12px;
}

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

.menu-item-card .thumb {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  background: #e5e7eb;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #ede9fe;
  color: var(--brand-deep);
  font-weight: 700;
  cursor: pointer;
}

.bottom-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  min-height: var(--nav-h);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 254, 0.96);
  border: 1px solid #e6dbf6;
  border-radius: 28px;
  box-shadow: 0 12px 28px rgba(43, 37, 80, 0.12);
  backdrop-filter: blur(10px);
}

.bottom-nav button {
  position: relative;
  border: 0;
  background: transparent;
  color: #7d6e9e;
  display: grid;
  gap: 2px;
  justify-items: center;
  align-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 1px;
}

.bottom-nav .nav-icon {
  font-size: 1.05rem;
  line-height: 1;
  color: inherit;
}

.bottom-nav button.active {
  color: #7b5ce1;
}

.bottom-nav button .cart-count {
  position: absolute;
  top: 0;
  right: calc(50% - 22px);
}

.cart-count.hidden,
#cartShortcut[hidden] {
  display: none !important;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  z-index: 40;
  display: none;
}

.sheet-backdrop.open {
  display: block;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-height: min(88vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 16px;
  transform: translateY(110%);
  transition: transform 0.22s ease;
}

.sheet.open {
  transform: translateY(0);
}

.sheet h2 {
  margin: 0 0 8px;
}

.sheet.order-details-sheet {
  max-height: min(92vh, 860px);
  padding: 18px 16px 22px;
  background:
    linear-gradient(180deg, #faf5ff 0%, #f3ecff 120px, #ffffff 220px);
}

.order-details-head {
  text-align: center;
  margin: 2px 0 14px;
}

.order-details-head h2 {
  margin: 0;
  color: #171225;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.order-details-head p {
  margin: 4px 0 0;
  color: #7a7096;
  font-size: 0.82rem;
  font-weight: 600;
  word-break: break-all;
}

.order-details-card {
  background: #e6dbff;
  border-radius: 28px;
  padding: 18px 16px;
  box-shadow: 0 10px 24px rgba(43, 37, 80, 0.08);
  margin-bottom: 12px;
}

.order-details-status {
  border-radius: 22px;
  box-shadow: 0 4px 14px rgba(43, 37, 80, 0.05);
}

.order-details-field {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.order-details-field:first-child {
  margin-top: 0;
}

.order-details-field > span {
  color: #5b5280;
  font-size: 0.72rem;
  font-weight: 800;
}

.order-details-field > strong {
  color: #171225;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.order-details-field > em {
  font-style: normal;
  color: #6b6280;
  font-size: 0.8rem;
  font-weight: 600;
}

.order-details-timing {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}

.order-details-items {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.order-details-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 4px 0;
}

.order-details-item-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.order-details-item-copy strong {
  color: #171225;
  font-size: 0.88rem;
  font-weight: 800;
}

.order-details-item-copy span {
  color: #6b6280;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: pre-line;
}

.order-details-item em {
  font-style: normal;
  color: #171225;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.order-details-items-empty {
  margin: 4px 0 0;
  color: #6b6280;
  font-size: 0.82rem;
  font-weight: 600;
}

.order-details-divider {
  height: 1px;
  margin: 16px 0 12px;
  background: rgba(58, 52, 99, 0.14);
}

.order-details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.order-details-row span {
  color: #5b5280;
  font-size: 0.82rem;
  font-weight: 600;
}

.order-details-row strong {
  color: #171225;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: right;
}

.order-details-row-total {
  margin-top: 14px;
}

.order-details-row-total span {
  font-weight: 800;
}

.order-details-row-total strong {
  font-size: 1.15rem;
  font-weight: 800;
}

.order-details-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.order-details-track-btn,
.order-details-orders-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 18px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.order-details-track-btn {
  border: 0;
  background: #a679ff;
  color: #fff;
}

.order-details-orders-btn {
  border: 1px solid #171225;
  background: #e6dbff;
  color: #171225;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: #fff;
}

.option-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.option-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
}

.totals {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.totals .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.totals .row.total {
  font-weight: 800;
  font-size: 1.05rem;
}

.empty-state,
.status-banner {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(109, 40, 217, 0.25);
  color: var(--muted);
  text-align: center;
}

.status-banner.error {
  border-style: solid;
  border-color: rgba(220, 38, 38, 0.25);
  color: var(--danger);
  background: #fef2f2;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.auth-card {
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.auth-card h1 {
  margin: 0 0 6px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}

.auth-tabs.auth-tabs-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.auth-tabs button,
.auth-subtabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.7rem;
  cursor: pointer;
}

.auth-tabs button.active,
.auth-subtabs button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
}

.auth-subtabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.password-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.password-rules li::before {
  content: '○ ';
}

.password-rules li.ok {
  color: #15803d;
}

.password-rules li.ok::before {
  content: '● ';
}

.consent-block {
  display: grid;
  gap: 8px;
  padding: 10px 0 2px;
}

.consent-block a {
  font-size: 0.86rem;
  font-weight: 600;
}

.consent-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink) !important;
}

.consent-label input {
  width: auto !important;
  margin-top: 3px;
}

.toast-host {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 18px);
  transform: translateX(-50%);
  z-index: 80;
  display: grid;
  gap: 8px;
  width: min(420px, calc(100% - 24px));
  pointer-events: none;
}

.toast {
  background: #111827;
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-error {
  background: #991b1b;
}

.hidden {
  display: none !important;
}

.stack {
  display: grid;
  gap: 12px;
}

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

@media (max-width: 640px) {
  .menu-item-card {
    grid-template-columns: 84px 1fr;
  }

  .menu-item-card .qty-controls {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

/* Android-like customer profile dashboard */
.profile-dashboard {
  max-width: 560px;
  margin: 0 auto;
  gap: 10px;
}

.profile-header-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 4px;
  padding: 20px 16px;
  border-radius: 28px;
  background: #f9f5ff;
  border: 1px solid #cdb6ff;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 8px;
  border-radius: 28px;
  background: linear-gradient(145deg, #ede9fe, #ddd6fe);
  border: 3px solid #fff;
  color: var(--brand-deep);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.12);
}

.profile-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.profile-email,
.profile-address {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-phone-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.profile-verified-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.12);
  color: var(--ok);
  font-size: 0.72rem;
  font-weight: 800;
}

.profile-section-label {
  margin: 14px 2px 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-rows {
  display: grid;
  gap: 10px;
}

.profile-row {
  display: grid;
  grid-template-columns: 44px 1fr 18px;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 18px;
  background: #f8f7fc;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.profile-row:hover,
.profile-row:focus-visible {
  background: #f1edff;
  outline: none;
}

.profile-row:active {
  transform: scale(0.995);
}

.profile-row-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(109, 40, 217, 0.12);
}

.profile-row-copy {
  display: grid;
  gap: 2px;
  padding: 0 14px;
  min-width: 0;
}

.profile-row-copy strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.profile-row-copy span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.profile-row-chevron {
  color: #9ca3af;
  display: grid;
  place-items: center;
}

.profile-row--danger {
  background: #fff1f2;
}

.profile-row--danger .profile-row-icon {
  color: var(--danger);
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.14);
}

.profile-row--danger .profile-row-copy strong {
  color: var(--danger);
}

.profile-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 0.95rem 1rem;
  border: 0;
  border-radius: 24px;
  background: #cdb6ff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.profile-logout-btn:hover,
.profile-logout-btn:focus-visible {
  filter: brightness(0.97);
  outline: none;
}

.profile-wallet-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background: #f9f5ff;
  border: 1px solid #cdb6ff;
}

.profile-wallet-card strong {
  font-size: 1.5rem;
  font-weight: 800;
}

/* Android-like Customer wallet hub */
.wallet-hub {
  position: relative;
  display: grid;
  gap: 10px;
  padding-bottom: 8px;
  text-align: center;
}

.wallet-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3eefc;
  color: #6b7280;
  font-size: 1.35rem;
  line-height: 1;
}

.wallet-hero-icon {
  width: 52px;
  height: 52px;
  margin: 28px auto 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f3eefc;
  color: #8e6bf0;
}

.wallet-title {
  margin: 6px 0 0;
  font-size: 1.35rem;
  color: #111827;
}

.wallet-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.wallet-topup-btn {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #cdb6ff;
  background: #fff;
  color: #2d1b69;
  font-weight: 700;
  cursor: pointer;
}

.wallet-balance-card {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 20px;
  border-radius: 24px;
  background: #f9f5ff;
  border: 1px solid #cdb6ff;
  text-align: left;
}

.wallet-balance-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wallet-balance-card strong {
  font-size: 1.85rem;
  font-weight: 800;
  color: #111827;
}

.wallet-help {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: left;
  line-height: 1.4;
}

.wallet-recent-title {
  margin: 10px 0 0;
  font-size: 1.1rem;
  color: #111827;
  text-align: left;
}

.wallet-recent-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: left;
}

.wallet-filter-scroller {
  overflow-x: auto;
  margin-top: 2px;
  text-align: left;
}

.wallet-filter-chips {
  display: inline-flex;
  gap: 8px;
  min-width: max-content;
  padding-bottom: 2px;
}

.wallet-filter-chip {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #cdb6ff;
  background: #fff;
  color: #2d1b69;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.wallet-filter-chip.is-active {
  background: #f3e8ff;
  border-color: #8e6bf0;
}

.wallet-recent-empty {
  margin-top: 4px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  background: #fff;
  text-align: left;
}

.wallet-recent-empty strong {
  display: block;
  color: #111827;
  font-size: 0.95rem;
}

.wallet-recent-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.wallet-recent-list {
  display: grid;
  gap: 10px;
  text-align: left;
}

.wallet-tx-card {
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.wallet-tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wallet-tx-title {
  color: #111827;
  font-size: 0.9rem;
}

.wallet-tx-amount {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.wallet-tx-amount--credit {
  color: #15803d;
}

.wallet-tx-amount--debit {
  color: #b91c1c;
}

.wallet-tx-reason,
.wallet-tx-balance,
.wallet-tx-meta {
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.wallet-tx-reason {
  color: #111827;
}

.wallet-tx-balance,
.wallet-tx-meta {
  color: var(--muted);
}

.wallet-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.wallet-pager .ghost-btn {
  min-width: 72px;
}

.wallet-pager span {
  color: var(--muted);
  font-size: 0.82rem;
}

.wallet-topup,
.wallet-topup-qr {
  display: grid;
  gap: 12px;
}

.wallet-topup-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}

.wallet-topup-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.wallet-topup-header .muted {
  margin: 4px 0 0;
}

.wallet-topup-header-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #2d1b69, #8e6bf0);
  color: #fff;
}

.wallet-topup-balance-panel {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2d1b69, #6d28d9);
  color: #ddd6fe;
  text-align: left;
}

.wallet-topup-balance-panel strong {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
}

.wallet-topup-balance-panel p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #ddd6fe;
}

.wallet-topup-amount-label {
  display: grid;
  gap: 8px;
  text-align: left;
  color: var(--muted);
  font-size: 0.86rem;
}

.wallet-topup-amount-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid #d7caef;
  background: #faf8ff;
  color: #2d1b69;
  font-weight: 800;
}

.wallet-topup-amount-field input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
}

.wallet-topup-amount-error {
  color: #b91c1c;
  font-size: 0.8rem;
}

.wallet-topup-preview {
  margin: 0;
  text-align: left;
  font-size: 0.84rem;
}

.wallet-topup-preview--ok {
  color: #2d1b69;
  font-weight: 600;
}

.wallet-topup-presets-title {
  text-align: left;
  color: #111827;
  font-size: 0.9rem;
}

.wallet-topup-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-topup-preset {
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid #c4b5fd;
  background: #f5f3ff;
  color: #2d1b69;
  font-weight: 700;
  cursor: pointer;
}

.wallet-topup-note,
.wallet-topup-payload,
.wallet-topup-details {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid #d7caef;
  background: #f9f5ff;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: left;
  line-height: 1.4;
}

.wallet-topup-payload strong,
.wallet-topup-details p {
  color: #111827;
}

.wallet-topup-payload p {
  margin: 6px 0 0;
  color: var(--muted);
  word-break: break-all;
}

.wallet-topup-actions {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 10px;
}

.wallet-topup-qr-frame {
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid #d7caef;
  background: #fff;
}

.wallet-topup-qr-frame img {
  width: min(248px, 100%);
  height: auto;
  display: block;
  background: #fff;
  border-radius: 16px;
}

.wallet-topup-download {
  width: 100%;
}

.wallet-topup-download-status {
  margin: 0;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
}

.wallet-topup-details p {
  margin: 0;
  color: var(--muted);
}

.wallet-topup-details p + p {
  margin-top: 6px;
}

/* Android-like Payment methods sheet */
.payments-hub {
  display: grid;
  gap: 0;
  padding: 4px 8px 12px;
}

.payments-handle {
  width: 48px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #e3e1ef;
}

.payments-hub-header {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 40px;
  padding: 0 40px;
  margin-bottom: 20px;
}

.payments-hub-titles h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
  color: #000;
  font-weight: 700;
}

.payments-hub-titles p {
  margin: 4px 0 0;
  color: #000;
  font-size: 0.875rem;
  line-height: 1.35;
  opacity: 0.72;
}

.payments-close-btn {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3eefc;
  color: #6b638c;
  cursor: pointer;
}

.payments-section-label {
  margin: 0 0 16px;
  color: #000;
  opacity: 0.72;
  font-size: 0.8125rem;
  font-weight: 700;
}

.payments-options {
  display: grid;
  gap: 12px;
}

.payments-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 24px;
  align-items: center;
  column-gap: 14px;
  width: 100%;
  padding: 18px;
  border: 0;
  border-radius: 20px;
  background: #f6f2ff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.payments-option:hover,
.payments-option:focus-visible {
  filter: brightness(0.985);
  outline: none;
}

.payments-option-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #2b2550;
}

.payments-option-glyph {
  display: block;
}

.payments-option-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.payments-option-copy strong {
  color: #000;
  font-size: 1rem;
  font-weight: 700;
}

.payments-option-copy span {
  color: #000;
  opacity: 0.72;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.payments-option-status {
  flex: 0 0 auto;
  padding: 4px 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Android bg_payment_status_neutral */
.payments-option-status--neutral {
  border-radius: 18px;
  border: 1px solid #2b2550;
  background: #f6f2ff;
  color: #6b638c;
}

/* Android bg_profile_verified_badge — Cash keeps this even when not selected */
.payments-option-status--success {
  border-radius: 999px;
  border: 1px solid #36d6a8;
  background: rgba(54, 214, 168, 0.1);
  color: #36d6a8;
}

.payments-trailing {
  color: #6b638c;
}

.payments-trailing--check {
  color: #36d6a8;
}

/* Android-like Profile settings sheet */
.settings-hub {
  display: grid;
  gap: 0;
  padding: 4px 8px 8px;
}

.settings-handle {
  width: 48px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #e3e1ef;
}

.settings-hub-header {
  position: relative;
  min-height: 48px;
  margin-bottom: 8px;
  padding-right: 48px;
}

.settings-hub-titles h2 {
  margin: 0;
  color: #2b2550;
  font-size: 1.375rem;
  font-weight: 700;
}

.settings-hub-titles p {
  margin: 4px 0 0;
  color: #3a3463;
  font-size: 0.875rem;
  line-height: 1.35;
}

.settings-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3eefc;
  color: #6b638c;
  cursor: pointer;
}

.settings-language-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid #3a3463;
  border-radius: 20px;
  background: #fdfbff;
  text-align: left;
  cursor: pointer;
}

.settings-language-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.settings-language-copy strong {
  color: #111827;
  font-size: 1rem;
}

.settings-language-copy span {
  color: #6b638c;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.settings-language-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.settings-language-value {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 18px;
  background: #2b2550;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.settings-language-beta {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ebe7f8;
  color: #2b2550;
  font-size: 0.6875rem;
  font-weight: 700;
}

.settings-language-beta[hidden],
.settings-badge[hidden] {
  display: none !important;
}

.settings-language-chevron {
  color: #3a3463;
}

.settings-section-title {
  margin: 20px 0 0;
  color: #2b2550;
  font-size: 1rem;
  font-weight: 700;
}

.settings-section-subtitle {
  margin: 4px 0 0;
  color: #6b638c;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.settings-toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid #3a3463;
  border-radius: 20px;
  background: #fdfbff;
}

.settings-toggle-row#settingsMasterRow {
  margin-top: 12px;
}

.settings-toggle-row.is-dimmed {
  opacity: 0.5;
}

.settings-toggle-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settings-toggle-copy strong {
  color: #111827;
  font-size: 0.9375rem;
}

.settings-toggle-copy span {
  color: #6b638c;
  font-size: 0.75rem;
  line-height: 1.35;
}

.settings-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 2px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ebe7f8;
  color: #2b2550;
  font-size: 0.6875rem;
  font-weight: 700;
}

.settings-switch {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 28px;
  cursor: pointer;
}

.settings-switch.is-disabled {
  cursor: not-allowed;
}

.settings-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-switch-track {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.15s ease;
}

.settings-switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.settings-switch input:checked + .settings-switch-track {
  /* Android SwitchMaterial appears brand dark purple when on */
  background: #2b2550;
}

.settings-switch input:checked + .settings-switch-track::after {
  transform: translateX(18px);
}

.settings-system-btn {
  width: 100%;
  margin-top: 12px;
  border-radius: 20px !important;
  border: 1px solid #3a3463 !important;
  background: #fff !important;
  color: #2b2550 !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
}

.settings-done-btn {
  width: 100%;
  margin-top: 20px;
  border-radius: 24px !important;
  background: #8e6bf0 !important;
  color: #fff !important;
  font-size: 1rem !important;
}

.settings-language-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 12, 34, 0.45);
}

.settings-language-dialog {
  width: min(360px, 100%);
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(17, 12, 34, 0.2);
}

.settings-language-dialog h3 {
  margin: 0 4px 8px;
  color: #000;
  font-size: 1.05rem;
}

.settings-language-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #111827;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.settings-language-choice.is-selected {
  background: #f3e8ff;
  color: #2d1b69;
  font-weight: 700;
}

.settings-language-choice svg {
  color: #8e6bf0;
}

.settings-language-cancel {
  margin-top: 6px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Android-like Edit Profile sheet (hamburger / profile row) */
.edit-profile-hub {
  display: grid;
  gap: 0;
  padding: 4px 8px 8px;
}

.edit-profile-handle {
  width: 48px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #e3e1ef;
}

.edit-profile-header {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 48px;
  margin-bottom: 4px;
  padding-right: 48px;
}

.edit-profile-header h2 {
  margin: 0;
  color: #2b2550;
  font-size: 1.25rem;
  font-weight: 700;
}

.edit-profile-header p {
  margin: 0;
  color: #3a3463;
  font-size: 0.875rem;
  line-height: 1.35;
}

.edit-profile-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3eefc;
  color: #6b638c;
  cursor: pointer;
}

.edit-profile-close-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.edit-profile-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.edit-profile-field {
  display: grid;
  gap: 2px;
  padding: 10px 14px 8px;
  border: 0;
  border-bottom: 1px solid #a59fc2;
  border-radius: 4px 4px 0 0;
  background: #f6f2ff;
  color: #6b638c;
  font-size: 0.75rem;
}

.edit-profile-field input {
  width: 100%;
  padding: 2px 0 4px;
  border: 0;
  background: transparent;
  color: #1f153b;
  font: inherit;
  font-size: 1rem;
}

.edit-profile-field input:focus {
  outline: none;
}

.edit-profile-field:focus-within {
  border-bottom-color: #2b2550;
}

.edit-profile-save-btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 0;
  border-radius: 24px;
  background: #2b2550;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.edit-profile-save-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.edit-profile-cancel-btn {
  width: 100%;
  margin-top: -4px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: #2b2550;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.edit-profile-cancel-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Android-like My Addresses sheet */
.addresses-hub {
  display: grid;
  gap: 0;
  padding: 4px 8px 8px;
}

.addresses-handle {
  width: 48px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #e3e1ef;
}

.addresses-hub-header {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 48px;
  margin-bottom: 8px;
  padding-right: 48px;
}

.addresses-hub-header h2 {
  margin: 0;
  color: #2b2550;
  font-size: 1.25rem;
  font-weight: 700;
}

.addresses-hub-header p {
  margin: 0;
  color: #3a3463;
  font-size: 0.875rem;
  line-height: 1.35;
}

.addresses-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3eefc;
  color: #6b638c;
  cursor: pointer;
}

.addresses-progress,
.addresses-empty {
  margin: 16px 0 0;
  color: #3a3463;
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.4;
}

.addresses-retry-btn {
  margin: 8px auto 0;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: #2b2550;
  font-weight: 700;
  cursor: pointer;
}

.addresses-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.addresses-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 8px 12px;
  min-height: 72px;
  padding: 12px 8px 12px 16px;
  border: 1px solid #3a3463;
  border-radius: 20px;
  background: #fff;
}

.addresses-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3eefc;
  color: #2b2550;
}

.addresses-card-copy {
  min-width: 0;
}

.addresses-card-copy strong {
  display: block;
  color: #000;
  font-size: 1rem;
}

.addresses-card-copy p {
  margin: 2px 0 0;
  color: #000;
  font-size: 0.875rem;
  line-height: 1.35;
}

.addresses-use-btn {
  border: 0;
  background: transparent;
  color: #2b2550;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.addresses-use-btn.is-default,
.addresses-use-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.addresses-more-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #2b2550;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.addresses-primary-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px 16px;
  border: 0;
  border-radius: 24px;
  background: #2b2550;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.addresses-primary-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.addresses-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.addresses-field {
  position: relative;
  display: grid;
  gap: 0;
  color: #6b638c;
  font-size: 0.82rem;
}

.addresses-field input,
.addresses-field textarea {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid #9a96b0;
  border-radius: 4px;
  background: #fff;
  color: #000;
  font: inherit;
}

.addresses-field input:focus,
.addresses-field textarea:focus {
  outline: none;
  border-color: #2b2550;
  box-shadow: inset 0 0 0 1px #2b2550;
}

.addresses-field input::placeholder,
.addresses-field textarea::placeholder {
  color: #9a96b0;
}

.addresses-field.has-value .addresses-floating-label {
  position: absolute;
  top: -8px;
  left: 10px;
  padding: 0 4px;
  background: #fff;
  color: #2b2550;
  font-size: 0.75rem;
  line-height: 1;
  pointer-events: none;
}

.addresses-field:not(.has-value) .addresses-floating-label {
  display: none;
}

.addresses-field.has-value input::placeholder {
  color: transparent;
}

.addresses-default-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  color: #2b2550;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.addresses-default-row .settings-switch {
  flex-shrink: 0;
}

.addresses-delete-btn {
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: #ff6b6b;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.bottom-nav .nav-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* Android-like My Orders screen */
.orders-screen {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.orders-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f5f0ff, #ebe4ff);
  border: 1px solid #cdb6ff;
}

.orders-header-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #fff;
  color: var(--brand-deep);
  flex: 0 0 auto;
}

.orders-header-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.orders-header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--brand-deep);
}

.orders-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.orders-list {
  display: grid;
  gap: 12px;
}

.orders-card {
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #cdb6ff;
  box-shadow: none;
  cursor: pointer;
}

.orders-card-top {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  align-items: start;
}

.orders-card-thumb {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3eefc;
  display: grid;
  place-items: center;
}

.orders-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orders-card-thumb img.is-broken {
  display: none;
}

.orders-card-thumb-fallback {
  display: grid;
  place-items: center;
  color: var(--brand-deep);
}

.orders-card-thumb-fallback svg {
  width: 26px;
  height: 26px;
}

.orders-card-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.orders-card-headline h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--brand-deep);
  line-height: 1.25;
}

.orders-status-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-deep);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: lowercase;
}

.orders-card-summary {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.orders-card-total {
  margin: 6px 0 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.orders-card-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
}

.orders-track-btn {
  margin-top: 10px;
  width: 100%;
  border-radius: 16px;
}

.orders-review-card {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f5f0ff;
  border: 1px solid rgba(205, 182, 255, 0.7);
}

.orders-review-card strong {
  display: block;
  font-size: 0.84rem;
}

.orders-review-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.orders-review-stars {
  display: flex;
  gap: 2px;
  margin-top: 8px;
  color: #c5bfd8;
  font-size: 1rem;
  line-height: 1;
}

.orders-review-stars .is-on {
  color: var(--brand-deep);
}

.orders-review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.orders-review-actions .ghost-btn {
  border-radius: 999px;
  min-height: 38px;
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
}

.orders-cta {
  width: 100%;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.orders-cta-icon {
  display: inline-grid;
  place-items: center;
  color: #fff;
}

.orders-cta-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.orders-empty {
  text-align: center;
  padding: 28px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #cdb6ff;
}

.orders-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  color: var(--brand-deep);
}

.orders-empty-icon svg {
  width: 36px;
  height: 36px;
}

.orders-empty strong {
  display: block;
  font-size: 1rem;
}

.orders-empty p {
  margin: 6px 0 0;
  color: var(--muted);
}

.orders-review-actions .ghost-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

/* Android-like review sheets */
.review-sheet {
  display: grid;
  gap: 4px;
}

.review-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: -4px -4px 10px;
  padding: 14px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5f0ff, #ebe4ff);
  border: 1px solid #cdb6ff;
}

.review-sheet-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.review-header-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #fff;
  color: var(--brand-deep);
  flex: 0 0 auto;
}

.review-header-icon svg {
  display: block;
}

.review-sheet-header--rider {
  margin: -16px -16px 0;
  padding: 18px 16px;
  border-radius: 24px 24px 0 0;
  border: 0;
  background: linear-gradient(180deg, #faf5ff 0%, #eee4ff 48%, #e2d7ff 100%);
}

.review-sheet-header--rider .review-sheet-title-row {
  align-items: center;
  gap: 14px;
}

.review-sheet-header--rider h2 {
  color: #111827;
  font-size: 1.12rem;
}

.review-sheet-subtitle {
  margin: 4px 0 0;
  color: #111827;
  font-size: 0.9rem;
  line-height: 1.35;
}

.review-rider-lottie {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  overflow: hidden;
}

.review-rider-lottie svg {
  display: block;
  width: 50px !important;
  height: 50px !important;
}

.review-rider-lottie-fallback {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
}

.review-sheet-body {
  padding-top: 16px;
}

/* Android RatingBar progressTint = menu_testimonial_rating_active #FFC447 */
.review-sheet--rider .review-star {
  color: #d6d3e4;
  font-size: 2rem;
}

.review-sheet--rider .review-star.is-active {
  color: #ffc447;
}

.review-sheet--rider .review-later-btn {
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  box-shadow: none;
  font-weight: 600;
}

.review-sheet--rider .review-field-label {
  display: none;
}

.review-sheet--rider .review-field textarea {
  min-height: 96px;
}

.review-sheet-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.review-sheet-header .muted {
  margin: 4px 0 0;
}

.review-close-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.review-prompt {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.review-stars {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.review-star {
  border: 0;
  background: transparent;
  color: #d1d5db;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.review-star.is-active {
  color: #f59e0b;
}

.review-rating-value {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.review-field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.review-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  resize: vertical;
  min-height: 96px;
  color: var(--ink);
  background: #fff;
}

.review-char-count {
  text-align: right;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 4px;
}

.review-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%);
}

.review-actions .primary-btn[disabled] {
  opacity: 0.55;
  display: inline-flex;
}

/* Android-like Favorites hub (profile row) */
.favorites-hub {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: min(70vh, 560px);
}

.favorites-handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 2px;
  border-radius: 999px;
  background: #e3e1ef;
}

.favorites-hub-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px -4px 0;
  padding: 10px 12px;
  border-radius: 20px;
  /* Android bg_favorites_hub_header: white → #F9F5FF → white */
  background: linear-gradient(180deg, #ffffff 0%, #f9f5ff 50%, #ffffff 100%);
  border: 1px solid #cdb6ff;
}

.favorites-hub-header h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: #111827;
}

.favorites-back-btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  cursor: pointer;
}

.favorites-hub-subtitle {
  margin: 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.favorites-hub-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  align-self: start;
  width: max-content;
  max-width: 100%;
  height: auto;
  margin: 2px 4px 0;
  padding: 6px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #cdb6ff;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.favorites-hub-body {
  min-height: 180px;
  align-self: stretch;
}

.favorites-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px 12px;
  text-align: center;
  color: var(--ink);
  font-size: 0.95rem;
}

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

.favorites-grid--single {
  grid-template-columns: 1fr;
}

.favorites-card {
  display: grid;
  gap: 4px;
  padding: 6px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #cdb6ff;
  cursor: pointer;
  text-align: left;
}

.favorites-card-media {
  position: relative;
  height: 118px;
  overflow: hidden;
  border-radius: 18px;
  background: #f5f0ff;
}

.favorites-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorites-card-image-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.8rem;
}

.favorites-heart-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.12);
  cursor: pointer;
}

.favorites-heart-btn svg {
  width: 16px;
  height: 16px;
}

/* Android ic_favorite_outline_24 + brand_text_primary tint */
.favorites-heart-btn svg path {
  fill: none;
  stroke: currentColor;
}

.favorites-card-name {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorites-card-meta {
  margin: 0;
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorites-card-rating {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cdb6ff;
  color: #111827;
  font-size: 0.68rem;
  font-weight: 700;
}

/* Android-like Help & Support sheet */
.support-hub {
  display: grid;
  gap: 0;
  padding: 0 2px 4px;
}

.support-handle {
  width: 48px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #e3e1ef;
}

.support-hub-header {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 48px;
  padding-right: 48px;
}

.support-hub-header h2 {
  margin: 0;
  color: #000;
  font-size: 1.25rem;
  font-weight: 700;
}

.support-hub-header p {
  margin: 0;
  color: #000;
  font-size: 0.875rem;
  line-height: 1.35;
}

.support-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3eefc;
  color: #6b638c;
  cursor: pointer;
}

.support-intro {
  margin: 16px 0 0;
  color: #000;
  font-size: 0.875rem;
  line-height: 1.45;
}

.support-section-label {
  margin: 24px 0 0;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.support-chip-grid {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.support-chip-row {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 6px;
  align-items: stretch;
}

.support-chip-divider {
  width: 1px;
  background: #2b2550;
  opacity: 0.35;
  align-self: stretch;
}

.support-chip {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #2b2550;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.support-chip-spacer {
  display: block;
}

.support-form {
  display: grid;
  gap: 0;
}

.support-field {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.support-field input,
.support-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #9a96b0;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
}

.support-field textarea {
  border-radius: 16px;
  min-height: 110px;
  resize: vertical;
}

.support-field input:focus,
.support-field textarea:focus {
  outline: none;
  border-color: #2b2550;
}

.support-field small {
  color: #6b638c;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
}

.support-attachment-card {
  margin-top: 8px;
  padding: 16px;
  border: 1px solid #2b2550;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}

.support-attachment-helper {
  margin: 0;
  color: #000;
  font-size: 0.75rem;
  line-height: 1.4;
}

.support-attachment-hint {
  margin: 4px 0 0;
  color: #6b638c;
  font-size: 0.7rem;
}

.support-attachment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.support-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #2b2550;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 0.78rem;
  cursor: pointer;
}

.support-attach-add {
  background: #f9f5ff;
  border-color: #cdb6ff;
}

.support-attach-remove {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
}

.support-submit-soft {
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #2b2550;
  border-radius: 20px;
  background: #f9f5ff;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.support-submit-soft:disabled,
.support-submit-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.support-contact-caption {
  margin: 16px 0 0;
  color: #000;
  font-size: 0.75rem;
  line-height: 1.4;
}

.support-contact-card {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #2b2550;
  border-radius: 16px;
  background: #fff;
}

.support-contact-helper {
  margin: 0 0 12px;
  color: #000;
  font-size: 0.75rem;
}

.support-email-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7f2ff;
}

.support-email-row {
  display: grid;
  gap: 2px;
}

.support-email-row span {
  color: #5b5280;
  font-size: 0.72rem;
  font-weight: 800;
}

.support-email-row a {
  color: var(--brand, #6b3df0);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}

.support-email-row a:hover {
  text-decoration: underline;
}

.support-contact-channel {
  width: 100%;
  display: grid;
  gap: 4px;
  margin-top: 0;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid #2b2550;
  border-radius: 24px;
  background: #f9f5ff;
  color: #000;
  text-align: left;
  cursor: pointer;
}

.support-contact-channel:last-child {
  margin-bottom: 0;
}

.support-contact-channel strong {
  font-size: 0.82rem;
}

.support-contact-channel span {
  font-size: 0.75rem;
}

.support-submit-primary {
  width: 100%;
  margin-top: 20px;
  padding: 14px 16px;
  border: 0;
  border-radius: 24px;
  background: #2b2550;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* Android-like Delete Account sheet */
.delete-account-hub {
  display: grid;
  gap: 0;
  padding: 0 2px 4px;
}

.delete-account-handle {
  width: 48px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #e3e1ef;
}

.delete-account-header {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 48px;
  padding-right: 48px;
}

.delete-account-header h2 {
  margin: 0;
  color: #2b2550;
  font-size: 1.375rem;
  font-weight: 700;
}

.delete-account-header p {
  margin: 0;
  color: #6b638c;
  font-size: 0.875rem;
  line-height: 1.35;
}

.delete-account-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3eefc;
  color: #6b638c;
  cursor: pointer;
}

.delete-account-close-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.delete-account-hero {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 24px;
  padding: 16px;
  background: #f9f5ff;
  border-radius: 4px;
}

.delete-account-hero-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #ff6b6b;
  font-size: 1.25rem;
  line-height: 1;
}

.delete-account-hero strong {
  display: block;
  color: #000;
  font-size: 1.125rem;
}

.delete-account-hero p {
  margin: 6px 0 0;
  color: #6b638c;
  font-size: 0.875rem;
  line-height: 1.45;
}

.delete-account-divider {
  width: 100%;
  height: 1px;
  margin: 24px 0 20px;
  border: 0;
  background: #cdb6ff;
}

.delete-account-section-title {
  margin: 0;
  color: #2b2550;
  font-size: 0.95rem;
  font-weight: 700;
}

.delete-account-form .delete-account-section-title {
  margin-top: 18px;
}

.delete-account-info-box {
  margin-top: 10px;
  padding: 16px;
  border: 1px solid #3a3463;
  border-radius: 20px;
  background: #fdfbff;
  color: #000;
  font-size: 0.95rem;
  line-height: 1.45;
}

.delete-account-helper {
  margin: 8px 0 0;
  color: #000;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.delete-account-form {
  display: grid;
  gap: 0;
}

.delete-account-field {
  display: grid;
  gap: 2px;
  margin-top: 18px;
  padding: 10px 14px 8px;
  border: 0;
  border-bottom: 1px solid #8e6bf0;
  border-radius: 4px 4px 0 0;
  background: #cdb6ff;
  color: #000;
  font-size: 0.75rem;
  font-weight: 600;
}

.delete-account-field input {
  width: 100%;
  padding: 2px 0 4px;
  border: 0;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.delete-account-field input:focus {
  outline: none;
}

.delete-account-field:has(#deleteEmailOtpInput) {
  margin-top: 14px;
}

#deleteEmailOtpInput {
  text-transform: none;
  letter-spacing: 0.12em;
  font-weight: 500;
}

#deleteKeywordInput::placeholder {
  text-transform: none;
  font-weight: 500;
  letter-spacing: normal;
  color: #000;
}

.delete-account-error {
  color: #ff6b6b;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}

.delete-account-otp-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #cdb6ff;
  color: #000;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.delete-account-otp-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.delete-account-otp-status {
  margin: 8px 0 0;
  color: #000;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.delete-account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.delete-account-cancel-btn {
  padding: 12px 14px;
  border: 1px solid #8e6bf0;
  border-radius: 8px;
  background: #fff;
  color: #8e6bf0;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.delete-account-confirm-btn {
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: #cdb6ff;
  color: #000;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.delete-account-confirm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ===== Android storefront parity ===== */
body.route-storefront .topbar,
body.route-storefront .bottom-nav {
  display: none !important;
}

body.route-storefront .app-shell {
  padding-bottom: 0;
}

body.route-storefront .content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.storefront {
  position: relative;
  min-height: 100vh;
  background: #fff;
  color: #1f153b;
  padding-bottom: 120px;
}

.storefront-hero {
  position: relative;
  height: 220px;
  background: #ede9fe;
}

.storefront-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.storefront-hero-fallback {
  background: linear-gradient(135deg, #c4b1ff, #8e6bf0);
}

.storefront-back-btn {
  position: absolute;
  top: 18px;
  left: 24px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  padding: 0;
}

.storefront-logo-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: 82px;
  height: 82px;
  transform: translate(-50%, 50%);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7caef;
  box-shadow: 0 10px 24px rgba(43, 37, 80, 0.16);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #2b2550;
}

.storefront-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storefront-body {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 54px 16px 24px;
}

.storefront-name {
  margin: 0 0 12px;
  text-align: center;
  font-size: 1.4375rem;
  font-weight: 800;
  color: #1f153b;
  line-height: 1.2;
}

.storefront-info-card {
  margin-top: 12px;
  padding: 22px;
  border: 1px solid #d7caef;
  border-radius: 30px;
  background: #f9f5ff;
}

.storefront-address {
  margin: 0 0 12px;
  color: #6b638c;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.storefront-info-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.storefront-info-col {
  display: grid;
  gap: 2px;
}

.storefront-info-col strong {
  font-size: 1rem;
  color: #1f153b;
}

.storefront-info-col span {
  color: #6b638c;
  font-size: 0.8125rem;
}

.storefront-info-divider {
  width: 1px;
  align-self: stretch;
  background: #d7caef;
}

.storefront-fee-line {
  margin: 14px 0 0;
  color: #6b638c;
  font-size: 0.875rem;
}

.storefront-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e6dbf6;
  box-shadow: 0 8px 20px rgba(43, 37, 80, 0.06);
}

.storefront-search-icon {
  color: #1f153b;
  display: grid;
  place-items: center;
}

.storefront-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  color: #1f153b;
}

.storefront-featured {
  margin-top: 22px;
}

.storefront-featured-title,
.storefront-section-head h2 {
  margin: 0;
  color: #1f153b;
  font-size: 1.125rem;
  font-weight: 800;
}

.storefront-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.storefront-featured-card {
  border: 1px solid #d7caef;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(43, 37, 80, 0.06);
}

.storefront-featured-media {
  position: relative;
  height: 150px;
  background: #eee8ff;
}

.storefront-featured-media img,
.storefront-menu-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.storefront-popular-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #8e6bf0;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.storefront-item-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

.storefront-item-fav.is-favorite {
  color: #ff6b6b;
}

.storefront-featured-body {
  display: grid;
  gap: 7px;
  padding: 12px 14px 16px;
}

.storefront-featured-body strong {
  font-size: 0.875rem;
  color: #1f153b;
  line-height: 1.25;
}

.storefront-featured-body > span {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1f153b;
}

.storefront-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  background: #fff;
  width: fit-content;
}

.storefront-stepper.is-empty {
  padding: 0 12px 0 14px;
}

.storefront-stepper button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1f153b;
  font-weight: 800;
  cursor: pointer;
}

.storefront-stepper button[hidden] {
  display: none !important;
}

.storefront-stepper [data-qty] {
  min-width: 28px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f153b;
}

.storefront-tabs-card {
  margin-top: 22px;
  padding: 16px 12px;
  border: 1px solid #d7caef;
  border-radius: 28px;
  background: #f7f2ff;
  box-shadow: 0 3px 10px rgba(43, 37, 80, 0.06);
}

.storefront-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  background: #fff;
  scrollbar-width: none;
}

.storefront-tabs::-webkit-scrollbar {
  display: none;
}

.storefront-tab {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #6b638c;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.7rem 0.75rem;
  cursor: pointer;
}

.storefront-tab.active {
  color: #2d1b69;
  border-bottom-color: #2d1b69;
}

.storefront-category-header {
  margin: 18px 0 4px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #2d1b69;
}

.storefront-section-head {
  margin: 16px 4px 0;
}

.storefront-section-head h2 {
  color: #1f153b;
  font-size: 1rem;
}

.storefront-section-head p {
  margin: 4px 0 0;
  color: #6b638c;
  font-size: 0.8125rem;
}

.storefront-menu-list {
  display: grid;
  gap: 0;
}

.storefront-menu-item {
  display: grid;
  grid-template-columns: 102px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 116px;
  padding: 14px 0;
  border-bottom: 1px solid #efe9f8;
}

.storefront-menu-thumb {
  width: 102px;
  height: 102px;
  border-radius: 18px;
  overflow: hidden;
  background: #f3edff;
}

.storefront-menu-copy h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: #1f153b;
}

.storefront-menu-copy .meta {
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.storefront-menu-copy strong {
  color: #1f153b;
  font-size: 0.9rem;
}

.storefront-stepper-list {
  align-self: end;
}

.storefront-cart-peek {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #d7caef;
  border-radius: 22px;
  background: #f9f5ff;
  box-shadow: 0 14px 30px rgba(43, 37, 80, 0.18);
  cursor: pointer;
  text-align: left;
  color: #1f153b;
}

.storefront-cart-peek.hidden {
  display: none !important;
}

.storefront-cart-peek-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.storefront-cart-peek-copy strong {
  font-size: 0.9rem;
}

.storefront-cart-peek-copy span {
  color: #6b638c;
  font-size: 0.78rem;
}

.storefront-cart-peek-total {
  font-weight: 800;
  white-space: nowrap;
}

.sheet.item-detail-sheet {
  inset: 0;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  max-height: none;
  height: 100%;
  border-radius: 0;
  padding: 0;
  transform: none;
  overflow: hidden;
  background: #fff;
}

.sheet.item-detail-sheet.open {
  transform: none;
}

.item-detail {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  background: #fff;
}

.item-detail-back {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1f153b;
  box-shadow: 0 6px 16px rgba(43, 37, 80, 0.16);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.item-detail-scroll {
  flex: 1;
  overflow: auto;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 12px 20px 24px;
  box-sizing: border-box;
}

.item-detail-hero {
  width: 100%;
  height: 220px;
  border-radius: 28px;
  overflow: hidden;
  background: #eee8ff;
  margin-bottom: 16px;
}

.item-detail-hero img,
.item-detail-hero .media-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: grid;
  place-items: center;
}

.item-detail-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #1f153b;
  text-transform: uppercase;
}

.item-detail-price {
  margin: 6px 0 0;
  font-size: 0.875rem;
  font-weight: 800;
  color: #1f153b;
}

.item-detail-desc {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  color: #5b5278;
  line-height: 1.4;
}

.item-detail-section {
  margin-top: 24px;
}

.item-detail-section h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 800;
  color: #1f153b;
}

.item-detail-customization h3 {
  font-size: 1rem;
}

.item-detail-subtitle {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #6b638c;
  line-height: 1.4;
}

.item-detail-customization > .item-detail-subtitle {
  font-size: 0.8125rem;
  color: #5b5278;
}

.item-detail-notes {
  width: 100%;
  margin-top: 12px;
  min-height: 96px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.75rem;
  color: #1f153b;
  resize: vertical;
  background: #fff;
}

.item-detail-notes::placeholder {
  color: #8a839f;
}

.item-detail-options-card {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid #d7caef;
  border-radius: 28px;
  background: #f7f2ff;
  display: grid;
  gap: 16px;
}

.item-detail-options-card-title {
  font-size: 1rem;
  color: #1f153b;
}

.item-detail-option-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-detail-option-titles {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.item-detail-option-titles strong {
  font-size: 0.97rem;
  color: #1f153b;
}

.item-detail-option-hint {
  color: #6b638c;
  font-size: 0.78rem;
}

.item-detail-option-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #1f153b;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.item-detail-option-list {
  margin-top: 8px;
}

.item-detail-option {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 8px 8px 10px;
  font-size: 0.97rem;
  color: #1f153b;
  cursor: pointer;
}

.item-detail-option + .item-detail-option {
  border-top: 1px solid rgba(215, 202, 239, 0.72);
}

.item-detail-option-label {
  min-width: 0;
}

.item-detail-option-price {
  font-style: normal;
  font-size: 0.84rem;
  font-weight: 700;
  color: #6b638c;
  white-space: nowrap;
}

.item-detail-option-price.is-extra {
  color: #1f153b;
}

.item-detail-option input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #2d1b69;
}

.item-detail-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(720px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 14px 20px;
  border-top: 1px solid #efe9f8;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(43, 37, 80, 0.08);
  border-radius: 28px 28px 0 0;
}

.item-detail-qty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  border: 1px solid #d7caef;
  border-radius: 26px;
  background: #f7f2ff;
  box-shadow: 0 6px 14px rgba(43, 37, 80, 0.08);
}

.item-detail-qty button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1f153b;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.item-detail-qty strong {
  min-width: 1.5rem;
  text-align: center;
  color: #1f153b;
  font-size: 0.875rem;
}

.item-detail-add {
  flex: 1.18;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: #2d1b69;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 24px;
}

body.route-checkout .topbar,
body.route-checkout .bottom-nav {
  display: none !important;
}

body.route-checkout .app-shell {
  padding-bottom: 0;
}

body.route-checkout .content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.route-cart .content {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 12px 16px 28px;
}

.saved-carts-screen {
  width: 100%;
}

.saved-carts-sheet {
  background: #fff;
  border: 1px solid #2b2550;
  border-radius: 28px;
  padding: 20px 24px 28px;
  box-shadow: 0 10px 28px rgba(43, 37, 80, 0.08);
}

.saved-carts-handle {
  width: 48px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #d7caef;
}

.saved-carts-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.saved-carts-head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #2b2550;
}

.saved-carts-head p {
  margin: 6px 0 0;
  color: #6b638c;
  font-size: 0.92rem;
  line-height: 1.35;
}

.saved-carts-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: #f3ecff;
  color: #2b2550;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}

.saved-carts-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.saved-cart-card {
  border: 1px solid #2b2550;
  border-radius: 20px;
  padding: 18px;
  background: #fff;
}

.saved-cart-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.saved-cart-restaurant-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f3ecff;
  color: #2b2550;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.saved-cart-restaurant-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.saved-cart-restaurant-copy strong {
  color: #1f153b;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-cart-restaurant-copy span {
  color: #6b638c;
  font-size: 0.86rem;
}

.saved-cart-remove-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: #f3ecff;
  color: #6b638c;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.saved-cart-info {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.saved-cart-meta-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3ecff;
  color: #2b2550;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-cart-fee,
.saved-cart-updated {
  margin: 0;
  color: #6b638c;
  font-size: 0.8rem;
}

.saved-cart-updated {
  margin-top: 6px;
  color: #a59fc2;
}

.saved-cart-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  color: #6b638c;
  font-size: 0.86rem;
}

.saved-cart-address svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #a59fc2;
}

.saved-cart-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.saved-cart-hero {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3ecff;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.saved-cart-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.saved-cart-hero-fallback {
  color: #2b2550;
  font-size: 0.72rem;
  font-weight: 800;
}

.saved-cart-preview-copy {
  min-width: 0;
  flex: 1;
}

.saved-cart-preview {
  margin: 0;
  color: #6b638c;
  font-size: 0.8rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.saved-cart-chip {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #efe8ff;
  color: #2b2550;
  font-size: 0.8rem;
  font-weight: 700;
}

.saved-cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.saved-cart-total {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.saved-cart-total span {
  color: #6b638c;
  font-size: 0.8rem;
}

.saved-cart-total strong {
  color: #2b2550;
  font-size: 1.125rem;
}

.saved-cart-resume-btn {
  border: 1.5px solid #2b2550;
  border-radius: 24px;
  background: #fff;
  color: #2b2550;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
}

.saved-cart-resume-btn:hover,
.saved-cart-resume-btn:focus-visible {
  background: #f3ecff;
  outline: none;
}

.saved-carts-empty {
  margin-top: 28px;
  padding: 24px;
  border-radius: 18px;
  background: #f8f3ff;
  text-align: center;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.saved-carts-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff;
  color: #2b2550;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.saved-carts-empty strong {
  color: #1f153b;
  font-size: 1rem;
}

.saved-carts-empty p {
  margin: 0;
  color: #6b638c;
  font-size: 0.86rem;
  max-width: 26ch;
}

.delivery-cart {
  width: min(720px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  background: #f7f4ff;
  color: #1f153b;
  padding-bottom: 28px;
}

.delivery-cart-header {
  padding: 14px 20px 8px;
  background: linear-gradient(180deg, #efe8ff 0%, #f7f4ff 100%);
  border-radius: 0 0 28px 28px;
}

.delivery-cart-handle {
  width: 64px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #2d1b69;
  opacity: 0.85;
}

.delivery-cart-toolbar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.delivery-cart-icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background: #fff;
  color: #1f153b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.delivery-cart-titles {
  flex: 1;
  min-width: 0;
}

.delivery-cart-titles h1 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 800;
}

.delivery-cart-titles p,
.delivery-cart-context,
.delivery-cart-card-body {
  margin: 4px 0 0;
  color: #6b638c;
  font-size: 0.8125rem;
}

.delivery-cart-count {
  margin: 18px 0 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.delivery-cart-section-label {
  margin: 22px 0 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.delivery-cart-items {
  margin-top: 12px;
  padding: 14px;
  border-radius: 22px;
  background: #f3edff;
  display: grid;
  gap: 14px;
}

.delivery-cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: start;
}

.delivery-cart-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.delivery-cart-thumb img,
.delivery-cart-thumb .media-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: grid;
  place-items: center;
}

.delivery-cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.delivery-cart-item-top strong,
.delivery-cart-item-top span {
  font-size: 0.95rem;
  font-weight: 800;
}

.delivery-cart-item-copy p {
  margin: 4px 0 0;
  color: #6b638c;
  font-size: 0.82rem;
}

.delivery-cart-item-note {
  white-space: pre-wrap;
}

.delivery-cart-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #fff;
}

.delivery-cart-stepper button {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #1f153b;
  font-weight: 700;
  cursor: pointer;
}

.delivery-cart-card {
  margin: 16px 20px 0;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 22px;
  background: #fff;
}

.delivery-cart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.delivery-cart-change {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  background: #fff;
  color: #1f153b;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}

.delivery-cart-pay-summary {
  width: 100%;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d7caef;
  border-radius: 18px;
  background: #f7f2ff;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.delivery-cart-pay-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: #2d1b69;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.delivery-cart-pay-icon.is-cash {
  background: #f4efff;
  border-color: #d7caef;
}

.delivery-cart-pay-svg {
  width: 28px;
  height: 28px;
  display: block;
}

.delivery-cart-pay-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.delivery-cart-pay-copy em,
.delivery-cart-pay-option em {
  font-style: normal;
  color: #6b638c;
  font-size: 0.75rem;
}

.delivery-cart-pay-amount {
  font-weight: 800;
  font-size: 1rem;
}

.delivery-cart-field {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b638c;
}

.delivery-cart-field textarea,
.delivery-cart-field select {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 18px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  color: #1f153b;
  background: #fff;
}

.delivery-cart-counter-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 400;
  color: #6b638c;
}

.delivery-cart-toggle {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px 10px 16px;
  border: 1px solid #d7caef;
  border-radius: 18px;
  background: #f3edff;
  font-weight: 700;
  color: #1f153b;
  cursor: pointer;
}

.delivery-cart-switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}

.delivery-cart-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.delivery-cart-switch-ui {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cfc3ea;
  transition: background 0.18s ease;
}

.delivery-cart-switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f4efff;
  box-shadow: 0 1px 3px rgba(43, 37, 80, 0.25);
  transition: transform 0.18s ease;
}

.delivery-cart-switch input:checked + .delivery-cart-switch-ui {
  background: #2d1b69;
}

.delivery-cart-switch input:checked + .delivery-cart-switch-ui::after {
  transform: translateX(22px);
  background: #fff;
}

.delivery-cart-total-card {
  margin: 16px 20px 0;
  padding: 18px 16px;
  border-radius: 22px;
  background: #f3edff;
}

.delivery-cart-total-label {
  font-size: 0.85rem;
  color: #1f153b;
}

.delivery-cart-total-amount {
  margin-top: 4px;
  font-size: 1.75rem;
  font-weight: 800;
}

.delivery-cart-total-card > p {
  margin: 4px 0 0;
  color: #6b638c;
  font-size: 0.8rem;
}

.delivery-cart-review-btn,
.delivery-cart-place {
  width: 100%;
  margin-top: 16px;
  min-height: 56px;
  border-radius: 18px;
  background: #2d1b69;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.delivery-cart-review-btn svg {
  flex: 0 0 auto;
}

.delivery-cart-sheet h2 {
  margin: 0;
}

.delivery-cart-sheet-sub {
  margin: 6px 0 0;
  color: #6b638c;
  font-size: 0.85rem;
}

.delivery-cart-pay-options {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.delivery-cart-pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d7caef;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.delivery-cart-pay-option.active {
  background: #f7f2ff;
  border-color: #2d1b69;
}

.delivery-cart-pay-option span:last-child {
  display: grid;
  gap: 2px;
}

.delivery-cart-tip-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.delivery-cart-tip-head span {
  color: #6b638c;
  font-size: 0.75rem;
}

.delivery-cart-tip-note {
  margin: 8px 0 0;
  color: #6b638c;
  font-size: 0.75rem;
}

.sheet.review-order-sheet {
  inset: 0;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  max-height: none;
  height: 100%;
  border-radius: 0;
  padding: 0;
  transform: none;
  overflow: hidden;
  background: #f7f4ff;
}

.sheet.review-order-sheet.open {
  transform: none;
}

.review-order {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: min(720px, 100%);
  margin: 0 auto;
  background: #f7f4ff;
  color: #1f153b;
}

.review-order-scroll {
  flex: 1;
  overflow: auto;
  padding: 12px 20px 220px;
}

.review-order-handle {
  width: 48px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #2d1b69;
  opacity: 0.65;
}

.review-order-toolbar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.review-order-toolbar h2 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 800;
}

.review-order-toolbar p {
  margin: 4px 0 0;
  color: #6b638c;
  font-size: 0.875rem;
}

.review-order-section-title {
  margin: 22px 0 0;
  font-size: 1rem;
  font-weight: 800;
}

.review-address-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  background: #efe8ff;
}

.review-address-main {
  width: 100%;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.review-map,
.review-map-fallback {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  background: #e8e4f2;
  border: 1px solid rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.review-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-map-fallback {
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: #6b638c;
}

.review-address-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.review-address-copy span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b638c;
}

.review-address-copy strong {
  font-size: 0.95rem;
}

.review-address-copy em {
  font-style: normal;
  color: #6b638c;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-chevron {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #efe8ff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: #1f153b;
  flex-shrink: 0;
}

.review-address-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.review-outline-btn {
  min-height: 42px;
  border: 1px solid #1f153b;
  border-radius: 999px;
  background: #fff;
  color: #1f153b;
  font-weight: 700;
  cursor: pointer;
}

.review-address-input {
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 16px;
  padding: 12px;
  font: inherit;
}

.review-courier-badge {
  display: inline-flex;
  margin-top: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #efe8ff;
  font-size: 0.75rem;
  font-weight: 800;
}

.review-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.review-items-head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.review-edit-order {
  border: 0;
  background: transparent;
  color: #0f9d7a;
  font-weight: 800;
  font-size: 0.8125rem;
  cursor: pointer;
}

.review-items-list {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.review-item-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
}

.review-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #efe8ff;
}

.review-item-thumb img,
.review-item-thumb .media-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: grid;
  place-items: center;
}

.review-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.review-item-copy p {
  margin: 4px 0 0;
  color: #6b638c;
  font-size: 0.82rem;
}

.review-fees-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.review-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6b638c;
  font-size: 0.82rem;
}

.review-fee-row strong {
  color: #1f153b;
  font-size: 0.875rem;
}

.review-fee-row-total {
  color: #1f153b;
  font-size: 0.95rem;
  font-weight: 800;
}

.review-fee-row-total strong {
  font-size: 1.125rem;
}

.review-fee-divider {
  height: 1px;
  background: rgba(31, 21, 59, 0.12);
}

.review-eta-card,
.review-tip-card-inline,
.review-delivery-options-card {
  margin-top: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  background: #fff;
}

.review-eta-card {
  padding: 16px;
  background: #f3effc;
}

.review-eta-card span {
  display: block;
  color: #6b638c;
  font-size: 0.75rem;
}

.review-eta-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.review-eta-card p {
  margin: 6px 0 0;
  color: #6b638c;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.review-tip-card-inline {
  padding: 18px;
}

.review-tip-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-tip-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  color: #1f153b;
  flex-shrink: 0;
}

.review-tip-head strong {
  flex: 1;
  font-size: 1.0625rem;
}

.review-tip-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: #efe8ff;
  color: #6b638c;
  font-size: 0.625rem;
  font-weight: 800;
}

.review-tip-body {
  margin: 8px 0 0;
  color: #6b638c;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.review-tip-panel {
  margin-top: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f7f4ff;
}

.review-tip-presets {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.review-tip-preset {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fff;
  color: #1f153b;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}

.review-tip-preset.active {
  background: #2d1b69;
  border-color: #2d1b69;
  color: #fff;
}

.review-tip-manual-label {
  display: block;
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 800;
}

.review-tip-manual-wrap {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
}

.review-tip-manual-wrap span {
  font-weight: 700;
}

.review-tip-manual-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  min-height: 44px;
}

.review-tip-helper {
  margin: 8px 0 0;
  color: #6b638c;
  font-size: 0.75rem;
}

.review-tip-note {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #efe8ff;
  color: #1f153b;
  font-size: 0.75rem;
}

.review-delivery-options-card {
  padding: 14px;
  background: #f3effc;
}

.review-delivery-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 60px;
  padding: 10px;
  border-radius: 18px;
}

.review-delivery-option strong {
  display: block;
  font-size: 0.875rem;
}

.review-delivery-option p {
  margin: 2px 0 0;
  color: #6b638c;
  font-size: 0.75rem;
}

.review-delivery-option em {
  font-style: normal;
  font-weight: 800;
  font-size: 0.8125rem;
}

.review-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #2d1b69;
  box-shadow: inset 0 0 0 4px #fff;
  background: #2d1b69;
}

.review-terms-text {
  margin: 8px 10px 2px;
  color: #6b638c;
  font-size: 0.6875rem;
  line-height: 1.4;
}

.review-terms-text a {
  color: #2d1b69;
  font-weight: 700;
}

.review-order-footer {
  padding: 10px 16px 14px;
  margin: -4px 10px 8px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 30px;
  box-shadow: 0 -10px 28px rgba(43, 37, 80, 0.12);
}

.review-footer-handle {
  width: 68px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #2d1b69;
  opacity: 0.75;
}

.review-total-panel {
  padding: 12px 14px;
  border-radius: 18px;
  background: #f7f4ff;
}

.review-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.review-total-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #6b638c;
}

.review-total-amount {
  font-size: 1.375rem;
  font-weight: 800;
  color: #1f153b;
}

.review-fees-chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #efe8ff;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  color: #6b638c;
}

.review-chip-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.review-meta-chip {
  min-height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #f7f4ff;
  color: #1f153b;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
}

.review-pin-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  background: #faf8ff;
  color: #5b5278;
  font-size: 0.8rem;
}

body.order-submission-open {
  overflow: hidden;
}

.order-submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: linear-gradient(180deg, #efe8ff 0%, #f7f4ff 45%, #f3effc 100%);
  overflow: auto;
}

.order-submit-shell {
  width: min(560px, 100%);
  margin: 0 auto;
  min-height: 100%;
  padding: 18px 16px 28px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.order-submit-badge-card,
.order-submit-sheet {
  border: 1px solid #d8cded;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
}

.order-submit-badge-card {
  padding: 12px 14px;
}

.order-submit-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-submit-scooter {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  overflow: hidden;
}

.order-submit-scooter svg,
.order-submit-scooter-fallback {
  width: 54px;
  height: 54px;
  display: block;
}

.order-submit-badge-row strong {
  font-size: 0.875rem;
}

.order-submit-eta {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #efe8ff;
  color: #1f153b;
  font-size: 0.78rem;
  font-weight: 700;
}

.order-submit-sheet {
  border-radius: 28px;
  background: #f7f4ff;
  min-height: calc(100vh - 120px);
}

.order-submit-scroll {
  padding: 22px 18px 24px;
}

.order-submit-progress-head,
.order-submit-success-head {
  text-align: center;
  margin-bottom: 18px;
}

.order-submit-progress-head h2,
.order-submit-success-head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f153b;
}

.order-submit-progress-head p,
.order-submit-success-head p {
  margin: 8px 0 0;
  color: #6b638c;
  font-size: 0.85rem;
  line-height: 1.4;
}

.order-submit-progress-track {
  margin: 18px auto 0;
  width: min(280px, 100%);
  height: 8px;
  border-radius: 999px;
  background: #efe8ff;
  overflow: hidden;
}

.order-submit-progress-track span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 999px;
  background: #8e6bf0;
  animation: order-submit-progress 1.2s ease-in-out infinite alternate;
}

@keyframes order-submit-progress {
  from { transform: translateX(0); }
  to { transform: translateX(160%); }
}

.order-submit-check {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #21b486;
  display: grid;
  place-items: center;
}

.order-submit-order-chip {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #efe8ff;
  font-weight: 800;
  font-size: 0.85rem;
}

.order-submit-timeline {
  border: 1px solid #d8cded;
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 0;
}

.order-submit-timeline-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
}

.order-submit-timeline-row + .order-submit-timeline-row {
  border-top: 1px solid #efe8ff;
}

.order-submit-timeline-row strong {
  font-size: 0.85rem;
}

.order-submit-timeline-row em {
  font-style: normal;
  color: #6b638c;
  font-size: 0.75rem;
}

.order-submit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.order-submit-dot-success { background: #21b486; }
.order-submit-dot-prep { background: #8e6bf0; }
.order-submit-dot-route { background: #3c9df2; }

.order-submit-details-label {
  margin: 22px 0 8px;
  color: #6b638c;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.order-submit-receipt {
  border: 1px solid #d8cded;
  border-radius: 20px;
  background: #fffdfe;
  padding: 16px;
}

.order-submit-receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #efe8ff;
  margin-bottom: 12px;
}

.order-submit-receipt-head > span {
  color: #6b638c;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.order-submit-receipt-head strong {
  background: #ffe7c2;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.order-submit-receipt-block {
  margin-bottom: 14px;
}

.order-submit-receipt-block span,
.order-submit-receipt-split span,
.order-submit-receipt-total span {
  display: block;
  color: #6b638c;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.order-submit-receipt-block strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.order-submit-receipt-block p,
.order-submit-receipt-split p {
  margin: 4px 0 0;
  color: #1f153b;
  font-size: 0.875rem;
  line-height: 1.4;
}

.order-submit-receipt-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #efe8ff;
  border-bottom: 1px solid #efe8ff;
}

.order-submit-receipt-split strong {
  display: block;
  margin-top: 4px;
  text-align: right;
}

.order-submit-receipt-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}

.order-submit-receipt-total strong {
  font-size: 1.15rem;
}

.order-submit-actions {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.order-submit-track {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.order-submit-details-btn {
  min-height: 54px;
  border: 1px solid #d8cded;
  border-radius: 16px;
  background: #fff;
  color: #1f153b;
  font: inherit;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.order-submit-qr {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #d8cded;
  background: #fff;
}

.order-submit-qr img {
  width: min(240px, 100%);
  border-radius: 12px;
  background: #fff;
}

.order-submit-qr strong {
  font-size: 1rem;
  color: #1f153b;
}

.order-submit-qr span {
  font-size: 0.8125rem;
  color: #6b638c;
  text-align: center;
}

.order-submit-qr code {
  word-break: break-all;
  font-size: 0.75rem;
  color: #6b638c;
}

/* QR Ph payment sheet — matches Android bottom sheet (above order-submit overlay) */
.qrph-sheet-root {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: end;
}

.qrph-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 12, 34, 0.45);
}

.qrph-sheet {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin: 0 auto;
  max-height: min(92vh, 900px);
  border-radius: 22px 22px 0 0;
  background: #fff;
  color: #1f153b;
  box-shadow: 0 -12px 40px rgba(17, 12, 34, 0.22);
  display: flex;
  flex-direction: column;
}

.qrph-sheet-handle {
  width: 42px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: #cfc6df;
}

.qrph-sheet-scroll {
  overflow: auto;
  padding: 12px 24px calc(20px + env(safe-area-inset-bottom));
  display: grid;
  gap: 4px;
}

.qrph-sheet-scroll h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.qrph-sheet-body {
  margin: 6px 0 12px;
  color: #6b638c;
  font-size: 0.875rem;
  line-height: 1.4;
}

.qrph-sheet-frame {
  position: relative;
  width: 100%;
  min-height: 280px;
  background: #fff;
  border: 1px solid #ece7f5;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.qrph-sheet-frame img {
  width: min(280px, 100%);
  max-height: 280px;
  object-fit: contain;
  padding: 12px;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.qrph-sheet-frame img.is-expired {
  opacity: 0.22;
  filter: blur(8px);
}

.qrph-sheet-expired-badge {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(17, 17, 17, 0.85);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  padding: 16px;
}

.qrph-sheet-expired-badge.is-visible {
  display: grid;
}

.qrph-sheet-amount,
.qrph-sheet-order {
  margin-top: 10px;
  font-size: 0.95rem;
}

.qrph-sheet-expiry {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #6b638c;
}

.qrph-sheet-waiting {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: #1f153b;
}

.qrph-sheet-waiting.is-expired {
  color: #c62828;
}

.qrph-sheet-payload {
  margin-top: 12px;
  display: grid;
  gap: 4px;
}

.qrph-sheet-payload code {
  font-size: 0.75rem;
  color: #6b638c;
  word-break: break-all;
}

.qrph-sheet-download {
  margin-top: 18px;
}

.qrph-sheet-download-status {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
}

.qrph-sheet-done {
  margin-top: 8px;
}

.track-qrph-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.track-qrph-card p {
  margin: 0;
  font-size: 0.8125rem;
  color: #3b2f5c;
  line-height: 1.4;
}

.track-qrph-meta {
  margin-top: 8px !important;
  font-weight: 700;
  color: #6b638c !important;
}

.track-qrph-btn {
  margin-top: 12px;
  width: 100%;
}

.update-address-backdrop {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  background: rgba(17, 12, 34, 0.45);
}

.update-address-dialog {
  width: min(420px, 100%);
  padding: 20px 18px 12px;
  border-radius: 20px;
  background: #fff;
  color: #1f153b;
  box-shadow: 0 18px 44px rgba(17, 12, 34, 0.22);
}

.update-address-dialog h3 {
  margin: 0 4px 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

.update-address-lead {
  margin: 0 4px 14px;
  color: #6b638c;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.update-address-field {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.update-address-field > span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1f153b;
}

.update-address-field em {
  font-style: normal;
  color: #6b638c;
  font-size: 0.75rem;
}

.update-address-select-wrap {
  position: relative;
}

.update-address-select-wrap select,
.update-address-field textarea {
  width: 100%;
  border: 2px solid #1f153b;
  border-radius: 18px;
  background: #fff;
  color: #1f153b;
  font: inherit;
  padding: 14px 16px;
}

.update-address-select-wrap select {
  appearance: none;
  min-height: 52px;
  padding-right: 42px;
  cursor: pointer;
}

.update-address-select-wrap svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #1f153b;
}

.update-address-field textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.35;
}

.update-address-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.update-address-text-btn {
  border: 0;
  background: transparent;
  color: #1f153b;
  font: inherit;
  font-weight: 700;
  min-height: 42px;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 10px;
}

.update-address-text-btn:hover {
  background: #f3effc;
}

.review-tip-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  display: grid;
  place-items: end center;
  padding: 16px;
  z-index: 5;
}

.review-tip-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 18px;
}

/* ===== Order tracking (Android OrderTrackingActivity parity) ===== */
body.route-tracking .topbar,
body.route-tracking .bottom-nav {
  display: none;
}

body.route-tracking .app-shell {
  min-height: 100dvh;
  background: #e6dbff;
}

body.route-tracking .content {
  padding: 0;
  max-width: none;
  background: #e6dbff;
}

.track-screen {
  min-height: 100dvh;
  width: 100%;
  background: #e6dbff;
  color: #111;
  display: flex;
  flex-direction: column;
  font-family: Roboto, 'Segoe UI', sans-serif;
}

.track-toolbar {
  margin: 8px 16px 0;
  padding: 8px 16px;
  border-radius: 24px;
  background: rgba(45, 12, 117, 0.5);
  color: #fff;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  column-gap: 4px;
  box-shadow: 0 12px 28px rgba(45, 12, 117, 0.22);
  position: sticky;
  top: 8px;
  z-index: 5;
}

.track-back {
  border: 0;
  background: transparent;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  justify-self: start;
}

.track-toolbar-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  min-width: 0;
  overflow: visible;
}

.track-toolbar-copy strong {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* Android MaterialToolbar subtitle: "Order {orderId}" fully visible */
.track-toolbar-copy .track-order-id {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  opacity: 1;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
  letter-spacing: 0.01em;
}

.track-scroll {
  width: 100%;
  padding: 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
}

.track-head {
  width: 100%;
}

.track-head h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

/* Android Chip Assist Elevated: brand_checkout_cta_lighter + #26000000 stroke */
.track-status-chip {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #e6dbff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  color: #111;
  font-size: 13px;
  font-weight: 500;
}

/* Android LinearProgressIndicator trackThickness=8dp */
.track-progress {
  position: relative;
  margin-top: 8px;
  height: 8px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.track-progress span {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  background: #111;
  border-radius: 999px;
  min-width: 8px;
}

/* Android connector row: faint #22000000 ovals/lines on lavender (not a 2nd black bar). */
.track-connectors {
  margin-top: 10px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 2fr 1fr 2fr 1fr;
  align-items: center;
  column-gap: 4px;
}

.track-connector-dot {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  /* Android #22000000 over lavender ≈ muted mauve, not solid black */
  background: rgba(0, 0, 0, 0.13);
  justify-self: stretch;
}

.track-connector-dot.is-done,
.track-connector-dot.is-current {
  background: rgba(0, 0, 0, 0.13);
}

.track-connector-line {
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.13);
}

.track-connector-line.is-done,
.track-connector-line.is-current {
  background: rgba(0, 0, 0, 0.13);
}

.track-steps {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
}

.track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0.62;
  padding: 0 4px;
}

.track-step.is-current,
.track-step.is-done {
  opacity: 1;
}

/* Android bg_order_tracking_status_step: #14FFFFFF + #22000000 stroke, 40dp */
.track-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.13);
  display: grid;
  place-items: center;
  overflow: visible;
  margin-bottom: 6px;
}

.track-step.is-current .track-step-icon,
.track-step.is-done .track-step-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 0, 0, 0.13);
}

.track-step-icon svg {
  width: 40px !important;
  height: 40px !important;
}

.track-step strong {
  font-size: 11px;
  font-weight: 500;
  color: #111;
}

.track-step.is-current strong {
  font-weight: 700;
}

.track-step:not(.is-current):not(.is-done) strong {
  color: #111;
  opacity: 0.62;
}

.track-step span {
  margin-top: 3px;
  font-size: 9px;
  color: rgba(0, 0, 0, 0.53);
}

.track-eta-pill {
  margin-top: 12px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.track-eta-meta {
  margin: 6px 0 0;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.6);
}

.track-status-msg {
  margin: 4px 0 0;
  font-size: 14px;
  color: #111;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.track-card {
  margin-top: 18px;
  border-radius: 18px;
  background: #e6dbff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 14px 16px;
}

.track-location {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 8px;
  align-items: center;
}

.track-location-copy {
  padding-right: 8px;
  min-width: 0;
}

.track-location-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
}

.track-location-row .track-pin {
  flex: 0 0 auto;
  color: #111;
}

.track-location-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}

.track-waiting-lottie {
  width: 64px;
  height: 64px;
}

.track-waiting-lottie.hidden {
  display: none;
}

.track-order-summary h3,
.track-timeline h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.track-items-label {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #5c5678;
}

.track-order-items {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
}

.track-order-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.track-order-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.track-order-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.track-qty {
  min-width: 40px;
  text-align: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ede3ff;
  font-size: 11px;
  font-weight: 700;
  color: #2d1b69;
}

.track-item-title {
  font-size: 15px;
  font-weight: 500;
  color: #1f153b;
}

.track-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #5c5678;
  white-space: nowrap;
}

.track-items-empty {
  margin: 12px 0 0;
  color: #5c5678;
  font-size: 13px;
}

.track-rider {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0.5;
  padding: 6px 0;
}

.track-rider.is-active {
  opacity: 1;
}

.track-rider-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #e6dbff 100%);
  border: 2px solid rgba(0, 0, 0, 0.22);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  padding: 5px;
}

.track-rider-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.track-rider-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-top: 2px;
}

.track-rider-copy strong {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.track-rider-copy > span {
  font-size: 13px;
  color: #111;
}

.track-rider-trust {
  margin-top: 5px !important;
  font-size: 12px !important;
  color: rgba(0, 0, 0, 0.6) !important;
}

.track-rider-trust-secondary {
  font-size: 11px !important;
  color: rgba(0, 0, 0, 0.48) !important;
}

.track-timeline ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track-timeline li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 14px;
}

.track-timeline li strong {
  font-weight: 600;
  color: #111;
}

.track-timeline li span {
  color: #111;
  font-size: 12px;
  white-space: nowrap;
}

.track-map {
  display: block;
  width: 100%;
  padding: 6px;
  overflow: hidden;
  position: relative;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.track-map img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  pointer-events: none;
}

.track-map-overlay {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border-radius: 0 0 14px 14px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  pointer-events: none;
}

.track-map-overlay strong {
  display: block;
  font-size: 13px;
}

.track-map-overlay span {
  color: #e0e0e0;
}

body.track-fullmap-open {
  overflow: hidden;
}

.track-fullmap {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #120f27;
}

.track-fullmap-toolbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
  background: #2d0c75;
  color: #fff;
}

.track-fullmap-toolbar strong {
  text-align: center;
  font-size: 1.05rem;
}

.track-fullmap-back {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.track-fullmap-body {
  position: relative;
  min-height: 0;
}

.track-fullmap-canvas {
  position: absolute;
  inset: 0;
  background: #e8e6ef;
}

.track-fullmap-frame,
.track-fullmap-static {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.track-fullmap-static {
  object-fit: cover;
}

.track-fullmap-empty {
  margin: 0;
  height: 100%;
  display: grid;
  place-items: center;
  color: #444;
  font-weight: 600;
}

.track-fullmap-card {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(45, 12, 117, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.track-fullmap-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #efe8ff;
  color: #2d0c75;
  font-size: 14px;
  flex: 0 0 auto;
}

.track-fullmap-card-copy {
  min-width: 0;
  flex: 1;
}

.track-fullmap-card-copy strong {
  display: block;
  font-size: 12px;
  color: #111;
}

.track-fullmap-card-copy span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.55);
}

.track-fullmap-live {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #2d0c75;
  background: #efe8ff;
  border: 1px solid rgba(45, 12, 117, 0.14);
}

.track-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.track-outline-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 16px;
  border: 1.5px solid #111;
  background: transparent;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

.track-outline-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.track-chat-status {
  margin: 0;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
}

body.route-chat .topbar,
body.route-chat .bottom-nav {
  display: none !important;
}

body.route-chat .app-shell,
body.route-chat .content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  background: #120f27;
}

/* Android ChatActivity windowBackground = brand_surface_alt #120F27 */
.rider-chat-screen {
  min-height: 100dvh;
  display: grid;
  place-items: stretch center;
  background: #120f27;
  padding: 0;
  color-scheme: dark;
}

.rider-chat-phone {
  width: min(430px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  background: #120f27;
}

/* MaterialCard 32dp + toolbar bg #802D0C75 over dark surface */
.rider-chat-toolbar {
  margin: calc(24px + env(safe-area-inset-top, 0px)) 16px 0;
  padding: 14px 20px;
  border-radius: 32px;
  background: #2d0c7580;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rider-chat-back {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.rider-chat-titles {
  min-width: 0;
}

.rider-chat-titles h1 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.rider-chat-titles p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: #fff;
  opacity: 0.95;
}

.rider-chat-messages {
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  background: #120f27;
}

.rider-chat-empty {
  margin: auto;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  text-align: center;
}

.rider-chat-row {
  display: flex;
  width: 100%;
  margin: 12px 0;
}

.rider-chat-row.is-customer {
  justify-content: flex-end;
  padding-left: 72px;
  padding-right: 12px;
}

.rider-chat-row.is-rider {
  justify-content: flex-start;
  padding-left: 12px;
  padding-right: 72px;
}

.rider-chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.1;
  word-break: break-word;
  color: #000;
}

.rider-chat-row.is-customer .rider-chat-bubble {
  background: #a5d6a7;
  text-align: end;
}

.rider-chat-row.is-rider .rider-chat-bubble {
  background: #d1c4e9;
  text-align: start;
}

.rider-chat-quick {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 12px 6px;
  background: transparent;
  scrollbar-width: none;
}

.rider-chat-quick::-webkit-scrollbar {
  display: none;
}

.rider-chat-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cdb6ff;
  border-radius: 999px;
  background: #f9f5ff;
  color: #000;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 12px 8px 8px;
  cursor: pointer;
  white-space: nowrap;
}

.rider-chat-chip .rider-chat-icon,
.rider-chat-send .rider-chat-icon {
  color: #000;
  flex: 0 0 auto;
}

.rider-chat-chip:disabled,
.rider-chat-composer.is-disabled {
  opacity: 0.6;
}

/* chat_input_background.xml: #E6DBFF, 18dp all corners, #26000000 stroke */
.rider-chat-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #e6dbff;
  border-radius: 18px;
  border: 1px solid #26000000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.rider-chat-composer input {
  flex: 1;
  min-height: 48px;
  border: 0;
  background: transparent;
  font: inherit;
  color: #000;
  padding: 12px 14px;
}

.rider-chat-composer input::placeholder {
  color: #555;
}

.rider-chat-composer input:focus {
  outline: none;
}

.rider-chat-send {
  min-width: 88px;
  min-height: 48px;
  border: 1.5px solid #000;
  border-radius: 20px;
  background: #f9f5ff;
  color: #000;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rider-chat-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .rider-chat-phone {
    width: 100%;
  }

  body.route-chat .app-shell,
  body.route-chat .content,
  .rider-chat-screen {
    background: #120f27;
  }
}

.track-help-btn {
  margin: 14px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  min-height: 36px;
  padding: 6px 16px;
  border-radius: 18px;
  border: 1.5px solid #d7c8f4;
  background: #f9f5ff;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

.track-help-btn svg {
  flex: 0 0 auto;
}

.track-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #111;
}
