:root {
  --pmo-red: #E4002B;
  --pmo-red-dark: #C40024;
  --pmo-bg: #F5F5F5;
  --pmo-white: #FFFFFF;
  --pmo-text: #1A1A1A;
  --pmo-muted: #888888;
  --pmo-border: #E0E0E0;
  --pmo-success: #2ECC71;
  --pmo-radius: 10px;
  --pmo-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --pmo-max: 430px;
  --pmo-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--pmo-font);
  background: var(--pmo-bg);
  color: var(--pmo-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}

body.pmo-app-body {
  display: flex;
  justify-content: center;
  background: #E8E8E8;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.pmo-shell {
  width: 100%;
  max-width: var(--pmo-max);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--pmo-white);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.pmo-boot-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: #000000;
  gap: 18px;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.pmo-boot-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pmo-boot-splash img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.pmo-boot-text {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #000000;
}
.pmo-boot-dots {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  margin-left: 6px;
  padding-bottom: 3px;
}
.pmo-boot-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #000000;
  opacity: 0;
  animation: pmo-boot-dot 1.2s infinite;
}
.pmo-boot-dots i:nth-child(2) { animation-delay: 0.2s; }
.pmo-boot-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes pmo-boot-dot {
  0%, 100% { opacity: 0; }
  25%, 95% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .pmo-boot-dots i { animation: none; opacity: 1; }
}
.pmo-auth-page.pmo-auth-checking .pmo-auth-form { visibility: hidden; }
.pmo-auth-page.pmo-auth-checking .pmo-auth-hero h1,
.pmo-auth-page.pmo-auth-checking .pmo-auth-hero p { visibility: hidden; }

/* ── Login / Signup ── */
.pmo-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: var(--pmo-max);
  margin: 0 auto;
  background: var(--pmo-white);
}

.pmo-auth-hero {
  position: relative;
  flex: 0 0 42vh;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 32px;
  color: var(--pmo-white);
  text-align: center;
}

.pmo-auth-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pmo-auth-bg-slide {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.pmo-auth-bg-slide.active {
  opacity: 1;
}

.pmo-auth-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.pmo-auth-hero > *:not(.pmo-auth-bg-slider) {
  position: relative;
  z-index: 2;
}

.pmo-auth-logo {
  width: 72px;
  height: 72px;
  background: var(--pmo-red);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(228, 0, 43, 0.4);
}

.pmo-auth-logo svg { width: 40px; height: 40px; fill: var(--pmo-white); }

.pmo-auth-logo-img {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.pmo-auth-logo-img img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}

.pmo-auth-logo-text {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-align: center;
  color: var(--pmo-white);
}

.pmo-auth-hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pmo-auth-hero p {
  font-size: 15px;
  opacity: 0.9;
  font-weight: 400;
}

.pmo-auth-form {
  flex: 1;
  padding: 28px 24px 32px;
  background: var(--pmo-white);
  border-radius: 24px 24px 0 0;
  margin-top: -20px;
  position: relative;
  z-index: 1;
}

.pmo-field { margin-bottom: 16px; }

.pmo-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--pmo-text);
}

.pmo-input-wrap { position: relative; }

.pmo-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--pmo-text);
  background: var(--pmo-white);
  outline: none;
  transition: border-color 0.2s;
}

.pmo-input:focus { border-color: var(--pmo-red); }
.pmo-input::placeholder { color: #BBBBBB; }

.pmo-input-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pmo-muted);
  padding: 4px;
  display: flex;
  align-items: center;
}

.pmo-input-toggle svg { width: 20px; height: 20px; }

.pmo-link {
  display: block;
  text-align: center;
  color: var(--pmo-red);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin: 12px 0 20px;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}

.pmo-btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--pmo-red);
  color: var(--pmo-white);
  border: none;
  border-radius: var(--pmo-radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.pmo-btn-primary:hover { background: var(--pmo-red-dark); }
.pmo-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.pmo-btn-primary.is-loading { opacity: 0.85; }

.pmo-forgot-overlay.open { display: flex; }
.pmo-forgot-modal { position: relative; max-width: 420px; width: calc(100% - 32px); }
.pmo-forgot-close {
  position: absolute; top: 12px; right: 12px; border: none; background: transparent;
  font-size: 24px; line-height: 1; cursor: pointer; color: var(--pmo-muted);
}
.pmo-forgot-sub { font-size: 14px; color: var(--pmo-muted); line-height: 1.5; margin: 0 0 16px; }
.pmo-forgot-dev { font-size: 13px; color: #92400e; background: #fef3c7; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.pmo-forgot-timer { font-size: 13px; color: var(--pmo-muted); text-align: center; margin: 12px 0 0; }
.pmo-forgot-timer.expired { color: var(--pmo-red); }
.pmo-forgot-resend { display: block; width: 100%; margin-top: 12px; text-align: center; }
.pmo-otp-row { display: flex; gap: 8px; justify-content: center; margin: 16px 0 8px; }
.pmo-otp-box {
  width: 44px; height: 52px; text-align: center; font-size: 22px; font-weight: 700;
  border: 2px solid #e5e7eb; border-radius: 10px; outline: none;
}
.pmo-otp-box:focus { border-color: var(--pmo-red); }

.pmo-addr-pick-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pmo-addr-pick-row .pmo-addr-pick { flex: 1; margin-bottom: 0; }
  border: 2px solid #e5e7eb; border-radius: 12px; cursor: pointer; background: #fff;
}
.pmo-addr-pick.active { border-color: var(--pmo-red); background: #fff5f6; }
.pmo-addr-pick input { margin-top: 4px; accent-color: var(--pmo-red); }
.pmo-addr-pick-body { flex: 1; }
.pmo-addr-pick-body strong { display: block; font-size: 14px; margin-bottom: 4px; }
.pmo-addr-pick-body p { margin: 0; font-size: 13px; color: var(--pmo-muted); line-height: 1.4; }
.pmo-addr-delete {
  border: none; background: transparent; color: var(--pmo-red); font-size: 12px; font-weight: 600; cursor: pointer;
}
.pmo-check-row {
  display: flex; align-items: center; gap: 10px; margin: 0 16px 8px; font-size: 14px; cursor: pointer;
}
.pmo-check-row input { accent-color: var(--pmo-red); width: 18px; height: 18px; }
.pmo-helper.warn { color: #b45309; }

.pmo-auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--pmo-muted);
}

.pmo-auth-footer a {
  color: var(--pmo-red);
  font-weight: 700;
  text-decoration: none;
}

.pmo-error {
  background: #FFF0F0;
  color: var(--pmo-red);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}

.pmo-error.show { display: block; }

/* ── App header ── */
.pmo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
  background: var(--pmo-white);
  border-bottom: 1px solid var(--pmo-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.pmo-header-simple {
  display: flex;
  align-items: center;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
  background: var(--pmo-white);
  border-bottom: 1px solid var(--pmo-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.pmo-header-back {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: var(--pmo-text);
  margin-right: 12px;
}

.pmo-header-back svg { width: 22px; height: 22px; }

.pmo-header-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  margin-right: 34px;
}

.pmo-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pmo-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  color: var(--pmo-text);
  display: flex;
  align-items: center;
}

.pmo-icon-btn svg { width: 22px; height: 22px; }

.pmo-notif-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: var(--pmo-red);
  border-radius: 50%;
  border: 2px solid var(--pmo-white);
}

.pmo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFB347, #FF6B6B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--pmo-white);
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  flex-shrink: 0;
}

.pmo-avatar-photo {
  background: var(--pmo-border);
}

.pmo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Home ── */
.pmo-home { padding: 20px 16px 100px; }

.pmo-greeting h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pmo-greeting p {
  font-size: 14px;
  color: var(--pmo-muted);
  margin-bottom: 24px;
}

.pmo-pick-card {
  background: var(--pmo-red);
  border-radius: 16px;
  padding: 24px 20px;
  color: var(--pmo-white);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  position: relative;
  margin-bottom: 28px;
  box-shadow: 0 6px 20px rgba(228, 0, 43, 0.35);
  transition: transform 0.15s;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.pmo-pick-card:active { transform: scale(0.98); }

.pmo-pick-card-icon {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pmo-pick-card-icon svg { width: 32px; height: 32px; fill: var(--pmo-white); }

.pmo-pick-card-body h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.pmo-pick-card-body p {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.4;
}

.pmo-pick-card-chevron {
  position: absolute;
  bottom: 16px;
  right: 16px;
  opacity: 0.8;
}

.pmo-pick-card-chevron svg { width: 20px; height: 20px; fill: var(--pmo-white); }

.pmo-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.pmo-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pmo-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: var(--pmo-bg);
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--pmo-text);
}

.pmo-service-icon {
  width: 40px;
  height: 40px;
  background: var(--pmo-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--pmo-shadow);
}

.pmo-service-icon svg { width: 20px; height: 20px; }

.pmo-service-item span {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.pmo-resume-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 18px;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  box-shadow: var(--pmo-shadow);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--pmo-text);
}

.pmo-resume-card:active { transform: scale(0.98); }

.pmo-resume-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ea580c;
}

.pmo-resume-icon svg { width: 24px; height: 24px; }

.pmo-resume-body { flex: 1; min-width: 0; }

.pmo-resume-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.pmo-resume-body p {
  margin: 0;
  font-size: 12px;
  color: var(--pmo-muted);
  line-height: 1.35;
}

.pmo-resume-chevron {
  color: #ea580c;
  flex-shrink: 0;
}

.pmo-resume-chevron svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Stepper ── */
.pmo-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px 8px;
  gap: 0;
}

.pmo-step {
  display: flex;
  align-items: center;
}

.pmo-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--pmo-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--pmo-muted);
  background: var(--pmo-white);
  flex-shrink: 0;
}

button.pmo-step-circle.pmo-step-clickable {
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.pmo-step.done button.pmo-step-clickable,
.pmo-step.active button.pmo-step-clickable {
  border-color: var(--pmo-red);
  color: var(--pmo-red);
}

button.pmo-step-clickable:hover {
  background: #fff5f6;
}

.pmo-step.active .pmo-step-circle {
  background: var(--pmo-red);
  border-color: var(--pmo-red);
  color: var(--pmo-white);
}

.pmo-step.done .pmo-step-circle {
  border-color: var(--pmo-red);
  color: var(--pmo-red);
}

.pmo-step-line {
  width: 24px;
  height: 2px;
  background: var(--pmo-border);
  flex-shrink: 0;
}

.pmo-step-line.done { background: var(--pmo-red); }

/* ── Wizard content ── */
.pmo-page { padding: 8px 16px calc(100px + env(safe-area-inset-bottom, 0px)); }

.pmo-page-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pmo-helper {
  font-size: 12px;
  color: var(--pmo-muted);
  margin-top: 4px;
}

.pmo-upload-box {
  border: 2px dashed var(--pmo-border);
  border-radius: var(--pmo-radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  background: #FAFAFA;
}

.pmo-upload-box:hover { border-color: var(--pmo-red); }

.pmo-upload-box.has-file {
  border-color: var(--pmo-red);
  border-style: solid;
  background: #FFF5F7;
}

.pmo-upload-icon svg { width: 40px; height: 40px; color: var(--pmo-muted); margin-bottom: 10px; }

.pmo-upload-box p {
  font-size: 14px;
  color: var(--pmo-muted);
  margin-bottom: 4px;
}

.pmo-upload-box small { font-size: 12px; color: #AAAAAA; }

.pmo-upload-preview {
  margin-top: 10px;
  font-size: 13px;
  color: var(--pmo-red);
  font-weight: 500;
}

.pmo-upload-box input[type="file"] { display: none; }

.pmo-upload-done {
  border-color: #16a34a !important;
  background: #f0fdf4 !important;
  position: relative;
}

.pmo-upload-done .pmo-upload-icon,
.pmo-upload-done p,
.pmo-upload-done small {
  visibility: hidden;
}

.pmo-upload-done .pmo-upload-preview {
  opacity: 0.35;
}

.pmo-upload-tick {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.pmo-upload-tick svg { width: 22px; height: 22px; }

.pmo-store-pickup-card {
  margin: 0 16px 16px;
  padding: 0 0 12px;
  border: none;
  border-bottom: 1px solid var(--pmo-border);
  border-radius: 0;
  background: transparent;
}

.pmo-store-pickup-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pmo-muted);
  margin-bottom: 6px;
}

.pmo-store-pickup-addr {
  font-size: 14px;
  line-height: 1.45;
  color: var(--pmo-text);
}

.pmo-step2-divider {
  height: 1px;
  background: var(--pmo-border);
  margin: 16px;
}

.pmo-loc-btn-wrap {
  display: flex;
  justify-content: center;
  padding: 0 16px;
  margin-bottom: 12px;
}

.pmo-loc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  width: auto;
  min-width: 200px;
  max-width: 100%;
  padding: 12px 20px;
  font-size: 14px;
}

.pmo-loc-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pmo-loc-btn-icon svg {
  width: 18px;
  height: 18px;
}

.pmo-loc-confirm-btn {
  margin: 0 16px 12px;
  width: calc(100% - 32px);
}

.pmo-loc-confirmed {
  margin: 0 16px 12px;
  color: var(--pmo-success, #16a34a);
}

.pmo-loc-preview {
  margin: 0 16px 12px;
  padding: 14px 16px;
  border-radius: var(--pmo-radius);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.pmo-loc-preview svg { flex-shrink: 0; color: #16a34a; width: 20px; height: 20px; }

.pmo-brand-rotator {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  font-size: 13px;
  color: #fff;
  opacity: 1;
  margin: 0;
  min-height: 20px;
  line-height: 1.4;
}

.pmo-pick-card .pmo-brand-rotator,
.pmo-pick-card .pmo-brand-rotator-prefix,
.pmo-pick-card .pmo-brand-rotator-name {
  color: #fff;
}

.pmo-brand-rotator-prefix {
  flex-shrink: 0;
  white-space: nowrap;
}

.pmo-brand-rotator-slot {
  display: inline-block;
  min-width: 6.5em;
  overflow: hidden;
  vertical-align: bottom;
}

.pmo-brand-rotator-name {
  color: #fff;
  font-weight: 700;
  display: inline-block;
}

.pmo-brand-rotator-name.pmo-brand-slide-out {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}

.pmo-brand-rotator-name.pmo-brand-slide-in {
  animation: pmoBrandSlideIn 0.3s ease;
}

@keyframes pmoBrandSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pmo-resume-icon img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.pmo-fee-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.pmo-fee-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--pmo-border);
  border-top-color: var(--pmo-red);
  border-radius: 50%;
  animation: pmoSpin 0.8s linear infinite;
}

@keyframes pmoSpin {
  to { transform: rotate(360deg); }
}

.pmo-slip-confirm-modal {
  max-width: 340px;
}

.pmo-slip-confirm-img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 10px;
  margin: 12px 0;
  border: 1px solid var(--pmo-border);
}

.pmo-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  outline: none;
}

.pmo-textarea:focus { border-color: var(--pmo-red); }

/* ── Review cards ── */
.pmo-review-card {
  border: 1.5px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.pmo-review-card label {
  display: block;
  font-size: 12px;
  color: var(--pmo-muted);
  margin-bottom: 4px;
}

.pmo-review-card .value {
  font-size: 15px;
  font-weight: 500;
  color: var(--pmo-text);
}

.pmo-review-slip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pmo-review-slip .view-link {
  margin-left: auto;
  color: var(--pmo-red);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

/* ── Payment ── */
.pmo-summary-box {
  border: 1.5px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  padding: 16px;
  margin-bottom: 20px;
}

.pmo-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 10px;
}

.pmo-summary-row.total {
  font-weight: 700;
  font-size: 16px;
  border-top: 1px solid var(--pmo-border);
  padding-top: 10px;
  margin-bottom: 0;
}

.pmo-payment-options { margin-bottom: 20px; }

.pmo-payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pmo-border);
  cursor: pointer;
}

.pmo-payment-option:last-child { border-bottom: none; }

.pmo-payment-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #2196F3;
}

.pmo-payment-option span { font-size: 15px; }

.pmo-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--pmo-muted);
  margin-top: 12px;
}

.pmo-secure svg { width: 14px; height: 14px; }

/* ── Success ── */
.pmo-success-page {
  padding: 40px 24px 100px;
  text-align: center;
}

.pmo-success-icon {
  width: 100px;
  height: 100px;
  background: var(--pmo-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
}

.pmo-success-icon svg { width: 48px; height: 48px; fill: var(--pmo-white); }

.pmo-confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pmo-success-page h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pmo-success-page p {
  font-size: 14px;
  color: var(--pmo-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.pmo-ref-box {
  background: var(--pmo-bg);
  border-radius: var(--pmo-radius);
  padding: 16px;
  margin-bottom: 28px;
}

.pmo-ref-box label {
  display: block;
  font-size: 13px;
  color: var(--pmo-muted);
  margin-bottom: 6px;
}

.pmo-ref-box .ref {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.pmo-link-btn {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--pmo-text);
  font-size: 15px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

/* ── Tracking timeline ── */
.pmo-track-page { padding: 20px 16px 100px; }

.pmo-track-ref {
  font-size: 13px;
  color: var(--pmo-muted);
  margin-bottom: 4px;
}

.pmo-track-ref strong { color: var(--pmo-text); }

.pmo-timeline { margin-top: 24px; }

.pmo-timeline-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 28px;
}

.pmo-timeline-item:last-child { padding-bottom: 0; }

.pmo-timeline-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--pmo-border);
}

.pmo-timeline-item:last-child::before { display: none; }

.pmo-timeline-item.done::before { background: var(--pmo-red); }

.pmo-timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--pmo-border);
  background: var(--pmo-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.pmo-timeline-item.done .pmo-timeline-dot {
  background: var(--pmo-red);
  border-color: var(--pmo-red);
}

.pmo-timeline-item.active .pmo-timeline-dot {
  border-color: var(--pmo-red);
  box-shadow: 0 0 0 4px rgba(228, 0, 43, 0.15);
}

.pmo-timeline-dot svg { width: 16px; height: 16px; }

.pmo-timeline-item.done .pmo-timeline-dot svg { fill: var(--pmo-white); }

.pmo-timeline-body h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.pmo-timeline-body p {
  font-size: 13px;
  color: var(--pmo-muted);
}

.pmo-timeline-item.active .pmo-timeline-body h4 { color: var(--pmo-red); }

/* ── Review rating ── */
.pmo-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
}

.pmo-star {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 36px;
  color: #DDDDDD;
  line-height: 1;
  transition: color 0.15s;
}

.pmo-star.active, .pmo-star:hover { color: #FFB800; }

/* ── Bottom nav ── */
.pmo-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--pmo-max);
  background: var(--pmo-white);
  border-top: 1px solid var(--pmo-border);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 8px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
}

.pmo-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--pmo-muted);
  font-size: 10px;
  font-weight: 500;
  padding: 4px 8px;
  min-width: 56px;
}

.pmo-nav-item svg { width: 22px; height: 22px; }

.pmo-nav-item.active { color: var(--pmo-red); }

.pmo-nav-fab-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -24px;
}

.pmo-nav-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pmo-red);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(228, 0, 43, 0.4);
  margin-bottom: 4px;
}

.pmo-nav-fab svg { width: 26px; height: 26px; fill: var(--pmo-white); }

.pmo-nav-fab-wrap span {
  font-size: 10px;
  font-weight: 600;
  color: var(--pmo-red);
}

/* ── Footer action bar ── */
.pmo-footer-action {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--pmo-max);
  padding: 12px 16px 20px;
  background: var(--pmo-white);
  border-top: 1px solid var(--pmo-border);
  z-index: 100;
}

.pmo-footer-action.with-nav { bottom: 72px; }

/* ── Orders list ── */
.pmo-orders-list { padding: 16px; }

.pmo-order-item {
  border: 1.5px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  background: var(--pmo-white);
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.pmo-order-item:hover { border-color: var(--pmo-red); }

.pmo-order-item .ref { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.pmo-order-item .meta { font-size: 12px; color: var(--pmo-muted); }

.pmo-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--pmo-muted);
  font-size: 14px;
}

.pmo-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--pmo-text);
  color: var(--pmo-white);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 200;
  max-width: 90%;
  text-align: center;
}

.pmo-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pmo-loading {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: pmo-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes pmo-spin { to { transform: rotate(360deg); } }

.pmo-placeholder-page {
  padding: 48px 24px;
  text-align: center;
  color: var(--pmo-muted);
}

.pmo-placeholder-page h3 {
  font-size: 18px;
  color: var(--pmo-text);
  margin-bottom: 8px;
}

@media (min-width: 431px) {
  .pmo-auth-page { box-shadow: 0 0 40px rgba(0,0,0,0.12); }
}

/* ── Sidebar ── */
.pmo-sidebar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 300;
}

.pmo-sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

.pmo-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 88%;
  background: var(--pmo-white);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.pmo-sidebar.open { transform: translateX(0); }

.pmo-sidebar-head {
  background: var(--pmo-red);
  color: var(--pmo-white);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pmo-sidebar-close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pmo-white);
}

.pmo-sidebar-close svg { width: 20px; height: 20px; }

.pmo-sidebar-user .name { font-size: 16px; font-weight: 700; }
.pmo-sidebar-user .email { font-size: 12px; opacity: 0.85; margin-top: 2px; }

.pmo-shell.sidebar-open { overflow: hidden; height: 100vh; }

.pmo-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pmo-sidebar-body::-webkit-scrollbar {
  display: none;
}

.pmo-support-form {
  margin: 0 16px 16px;
  padding: 16px;
  background: var(--pmo-white);
  border: 1.5px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
}

.pmo-support-form .pmo-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.pmo-support-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  box-sizing: border-box;
}

.pmo-support-form .pmo-btn-primary {
  width: 100%;
  margin-top: 4px;
}

.pmo-sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--pmo-text);
  transition: background 0.15s;
}

.pmo-sidebar-item:hover,
.pmo-sidebar-item:active { background: #FFF5F7; }

.pmo-sidebar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pmo-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--pmo-red);
}

.pmo-sidebar-icon svg { width: 20px; height: 20px; }

.pmo-sidebar-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.pmo-sidebar-text small {
  display: block;
  font-size: 11px;
  color: var(--pmo-muted);
  line-height: 1.35;
}

/* ── Menu hub pages ── */
.pmo-hub-page { padding: 0 0 100px; }

.pmo-hub-balance {
  margin: 16px;
  padding: 20px;
  background: linear-gradient(135deg, var(--pmo-red), #B8001F);
  border-radius: 14px;
  color: var(--pmo-white);
}

.pmo-hub-balance-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #333, #111);
}

.pmo-hub-balance-text {
  flex: 1;
  min-width: 0;
}

.pmo-hub-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.pmo-track-delivered-hub {
  padding-bottom: 100px;
}

.pmo-track-new-order-card {
  margin: 16px;
  padding: 24px 20px;
  border-radius: 14px;
  background: var(--pmo-white);
  border: 1px solid var(--pmo-border);
  text-align: center;
}

.pmo-track-new-order-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.pmo-track-new-order-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--pmo-muted);
  line-height: 1.45;
}

.pmo-track-delivered-title {
  padding: 8px 16px 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pmo-muted);
}

.pmo-track-delivered-card {
  margin: 0 16px 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.pmo-track-delivered-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.pmo-track-delivered-badge {
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 999px;
}

.pmo-track-delivered-meta {
  font-size: 13px;
  color: var(--pmo-text);
  margin-bottom: 4px;
}

.pmo-track-delivered-ref {
  font-size: 12px;
  color: var(--pmo-muted);
}

.pmo-prof-btn-saved {
  background: #16a34a !important;
  border-color: #16a34a !important;
}

.pmo-hub-balance label {
  font-size: 12px;
  opacity: 0.85;
  display: block;
  margin-bottom: 4px;
}

.pmo-hub-balance .amount {
  font-size: 28px;
  font-weight: 800;
}

.pmo-menu-list { padding: 0 16px; }

.pmo-menu-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--pmo-border);
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--pmo-text);
}

.pmo-menu-row:last-child { border-bottom: none; }

.pmo-menu-row.danger .pmo-menu-row-title { color: var(--pmo-red); }
.pmo-menu-row.danger .pmo-menu-row-icon { color: var(--pmo-red); background: #FFF0F3; }

.pmo-menu-row-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--pmo-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--pmo-red);
}

.pmo-menu-row-icon svg { width: 20px; height: 20px; }

.pmo-menu-row-body { flex: 1; min-width: 0; }

.pmo-menu-row-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.pmo-menu-row-desc {
  display: block;
  font-size: 12px;
  color: var(--pmo-muted);
  line-height: 1.35;
}

.pmo-menu-row-chevron {
  color: var(--pmo-muted);
  flex-shrink: 0;
}

.pmo-menu-row-chevron svg { width: 18px; height: 18px; }

.pmo-detail-page {
  padding: 16px 16px 100px;
}

.pmo-detail-card {
  background: var(--pmo-bg);
  border-radius: var(--pmo-radius);
  padding: 16px;
  margin-bottom: 16px;
}

.pmo-detail-card h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.pmo-detail-card p,
.pmo-detail-card li {
  font-size: 13px;
  color: var(--pmo-muted);
  line-height: 1.5;
}

.pmo-detail-card ul {
  padding-left: 18px;
}

.pmo-order-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--pmo-border);
  -webkit-overflow-scrolling: touch;
}

.pmo-order-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--pmo-border);
  background: var(--pmo-white);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  color: var(--pmo-muted);
}

.pmo-order-tab.active {
  background: var(--pmo-red);
  border-color: var(--pmo-red);
  color: var(--pmo-white);
}

.pmo-header-simple .pmo-header-back { margin-right: 0; }
.pmo-header-simple .pmo-header-title { margin-right: 0; text-align: left; padding-left: 4px; }

/* ── Step 1: restaurant picker ── */
.pmo-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.pmo-brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px 8px;
  border: 2px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  background: var(--pmo-white);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pmo-brand-card.active {
  border-color: var(--pmo-red);
  box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.12);
}

.pmo-brand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--pmo-text);
}

/* ── Step 2: saved address ── */
.pmo-saved-addr-ok {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--pmo-radius);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  margin: 0 16px 12px;
}

.pmo-saved-addr-ok svg {
  width: 22px;
  height: 22px;
  fill: #16a34a;
  flex-shrink: 0;
  margin-top: 2px;
}

.pmo-saved-addr-ok strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.pmo-saved-addr-ok p {
  font-size: 13px;
  color: var(--pmo-muted);
  margin: 0;
  line-height: 1.45;
}

.pmo-change-addr-link {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--pmo-red);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  font-family: inherit;
  text-decoration: underline;
}

/* ── Step 5: Paystack channels ── */
.pmo-paystack-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}

.pmo-paystack-chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 20px;
  background: var(--pmo-bg);
  border: 1px solid var(--pmo-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--pmo-text);
}

.pmo-btn-outline {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border: 2px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  background: var(--pmo-white);
  color: var(--pmo-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.pmo-btn-outline:hover { border-color: var(--pmo-red); color: var(--pmo-red); }

/* ── Track map animation ── */
.pmo-track-eta {
  background: linear-gradient(135deg, var(--pmo-red), #c40024);
  color: #fff;
  border-radius: var(--pmo-radius);
  padding: 16px;
  margin: 16px 0;
  text-align: center;
}

.pmo-track-eta-label {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.pmo-track-eta-time {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.pmo-track-eta-sub {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
}

.pmo-track-map {
  background: var(--pmo-bg);
  border-radius: var(--pmo-radius);
  padding: 20px 16px;
  margin-bottom: 12px;
}

.pmo-track-route {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pmo-track-point {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pmo-white);
  border: 2px solid var(--pmo-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pmo-track-point svg {
  width: 18px;
  height: 18px;
  color: var(--pmo-text);
}

.pmo-track-point.end svg { color: var(--pmo-red); }

.pmo-track-line {
  flex: 1;
  position: relative;
  height: 4px;
  background: var(--pmo-border);
  border-radius: 2px;
}

.pmo-track-rider {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pmo-red);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(228, 0, 43, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pmo-rider-bob 1.2s ease-in-out infinite;
}

.pmo-track-rider svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

@keyframes pmo-rider-bob {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 4px)); }
}

.pmo-track-driver-note {
  font-size: 12px;
  color: var(--pmo-muted);
  text-align: center;
  margin: 0 0 8px;
}

.pmo-track-confirm {
  margin-top: 24px;
  padding-top: 8px;
}

/* ── Modals: slip preview & rating ── */
.pmo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pmo-modal-overlay.open { display: flex; }

.pmo-slip-modal {
  position: relative;
  max-width: 100%;
  max-height: 90vh;
  background: var(--pmo-white);
  border-radius: var(--pmo-radius);
  overflow: hidden;
}

.pmo-slip-modal img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.pmo-slip-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.pmo-modal {
  background: var(--pmo-white);
  border-radius: var(--pmo-radius);
  padding: 24px 20px;
  width: 100%;
  max-width: 360px;
}

.pmo-rate-modal h3 {
  margin: 0 0 6px;
  font-size: 18px;
  text-align: center;
}

.pmo-rate-modal p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--pmo-muted);
  text-align: center;
}

.pmo-modal-actions {
  margin-top: 16px;
}

.pmo-modal-actions .confirm {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--pmo-radius);
  background: var(--pmo-red);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.pmo-modal-actions-split {
  display: flex;
  gap: 10px;
}

.pmo-modal-actions-split .secondary,
.pmo-modal-actions-split .confirm {
  flex: 1;
  width: auto;
}

.pmo-modal-actions .secondary {
  padding: 14px;
  border: 1.5px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  background: #fff;
  color: var(--pmo-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.pmo-support-phone {
  display: block;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--pmo-red);
  margin: 16px 0;
  text-decoration: none;
}

.pmo-track-done-msg {
  margin: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 14px;
  text-align: center;
}

.pmo-track-done-msg.warn {
  background: #fff7ed;
  color: #9a3412;
}

.pmo-track-done-msg a {
  color: inherit;
  font-weight: 700;
}

.pmo-fee-breakdown .pmo-summary-row:last-child {
  font-weight: 600;
}

/* Notifications inbox */
.pmo-notif-list {
  padding: 0 16px 100px;
}

.pmo-notif-item {
  background: var(--pmo-white);
  border: 1px solid var(--pmo-border);
  border-radius: var(--pmo-radius);
  padding: 14px 44px 14px 16px;
  margin-bottom: 10px;
  position: relative;
  cursor: pointer;
}


.pmo-notif-item.unread .pmo-notif-item-title,
.pmo-notif-item.unread .pmo-notif-item-body {
  font-weight: 700;
}

.pmo-notif-item:not(.unread) .pmo-notif-item-title {
  font-weight: 500;
}

.pmo-notif-menu-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: var(--pmo-muted);
  cursor: pointer;
  border-radius: 8px;
}

.pmo-notif-menu-btn:hover { background: #f5f5f5; }

.pmo-notif-menu {
  display: none;
  position: absolute;
  top: 36px;
  right: 8px;
  z-index: 10;
  background: var(--pmo-white);
  border: 1px solid var(--pmo-border);
  border-radius: 10px;
  box-shadow: var(--pmo-shadow);
  min-width: 140px;
  overflow: hidden;
}

.pmo-notif-menu.open { display: block; }

.pmo-notif-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.pmo-notif-menu button:hover { background: #f5f5f5; }

.pmo-notif-item-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.pmo-notif-item-body {
  font-size: 14px;
  color: var(--pmo-muted);
  line-height: 1.45;
}

.pmo-notif-item-date {
  font-size: 12px;
  color: var(--pmo-muted);
  margin-top: 8px;
}

/* Dark mode */
html[data-theme="dark"] {
  --pmo-bg: #121212;
  --pmo-white: #1e1e1e;
  --pmo-text: #f0f0f0;
  --pmo-muted: #a0a0a0;
  --pmo-border: #333333;
  --pmo-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] body.pmo-app-body {
  background: #0a0a0a;
}

html[data-theme="dark"] .pmo-input,
html[data-theme="dark"] .pmo-textarea,
html[data-theme="dark"] select.pmo-input {
  background: #2a2a2a;
  color: var(--pmo-text);
  border-color: var(--pmo-border);
}

html[data-theme="dark"] .pmo-track-done-msg {
  background: #1a3d2a;
  color: #86efac;
}

html[data-theme="dark"] .pmo-track-done-msg.warn {
  background: #3d2a1a;
  color: #fdba74;
}

.pmo-chat-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: var(--pmo-bg, #fff);
  flex-direction: column;
}
.pmo-chat-screen.open { display: flex; }
body.pmo-chat-open { overflow: hidden; }
.pmo-chat-screen-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.pmo-chat-topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 8px;
  border-bottom: 1px solid var(--pmo-border);
  background: var(--pmo-bg, #fff);
  flex-shrink: 0;
}
.pmo-chat-title-btn {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  cursor: pointer;
  padding: 0 8px;
}
.pmo-chat-title-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pmo-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.pmo-chat-back {
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pmo-text);
  cursor: pointer;
  border-radius: 10px;
}
.pmo-chat-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pmo-chat-topbar-spacer { width: 44px; height: 44px; }
.pmo-chat-order-ref {
  margin: 0;
  padding: 0 16px 8px;
  font-size: 12px;
  color: var(--pmo-muted);
  text-align: center;
  border-bottom: 1px solid var(--pmo-border);
}
.pmo-chat-notice {
  background: #fff7ed; color: #9a3412; border-bottom: 1px solid #fed7aa;
  padding: 10px 16px; font-size: 13px; line-height: 1.5; flex-shrink: 0;
}
.pmo-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f3f4f6;
}
.pmo-chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}
.pmo-chat-row.mine { justify-content: flex-end; }
.pmo-chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pmo-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.pmo-driver-profile-screen .pmo-chat-topbar { border-bottom: 1px solid var(--pmo-border); }
.pmo-driver-profile-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}
.pmo-driver-profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--pmo-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 34px;
  margin-bottom: 24px;
}
.pmo-driver-profile-label {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pmo-muted);
  margin-bottom: 8px;
}
.pmo-driver-profile-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--pmo-text);
  max-width: 320px;
  word-break: break-word;
}
.pmo-chat-bubble {
  max-width: min(78%, 320px);
  background: #fff;
  border: 1px solid var(--pmo-border);
  border-radius: 16px 16px 16px 6px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.pmo-chat-bubble.mine {
  background: var(--pmo-red);
  color: #fff;
  border-color: var(--pmo-red);
  border-radius: 16px 16px 6px 16px;
}
.pmo-chat-bubble.mine .pmo-chat-time { color: rgba(255,255,255,.85); }
.pmo-chat-text { font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.pmo-chat-image { max-width: 100%; border-radius: 10px; margin-top: 6px; display: block; }
.pmo-chat-time { font-size: 10px; color: var(--pmo-muted); margin-top: 6px; text-align: right; }
.pmo-chat-empty { text-align: center; color: var(--pmo-muted); font-size: 13px; padding: 24px 12px; }
.pmo-chat-empty-state { padding: 24px 16px; text-align: center; color: var(--pmo-muted); font-size: 14px; line-height: 1.6; }
.pmo-chat-compose {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--pmo-border);
  background: var(--pmo-bg, #fff);
  flex-shrink: 0;
}
.pmo-chat-compose.disabled { opacity: 1; }
.pmo-chat-compose.disabled .pmo-chat-input { background: var(--pmo-surface, #f3f4f6); }
.pmo-chat-compose-note {
  margin: 0;
  padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px));
  font-size: 12px;
  line-height: 1.55;
  color: var(--pmo-muted);
  text-align: center;
}
.pmo-chat-input {
  flex: 1;
  margin: 0;
  min-width: 0;
  border-radius: 24px;
  padding: 12px 16px;
}
.pmo-chat-send-icon {
  border: 0;
  background: var(--pmo-red);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.pmo-chat-send-icon:disabled { opacity: .5; cursor: not-allowed; }
.pmo-chat-loading { padding: 24px; text-align: center; color: var(--pmo-muted); flex: 1; }

/* legacy modal chat classes — kept for compatibility */
.pmo-chat-overlay.open { display: none; }
.pmo-chat-modal { display: none; }
.pmo-chat-close { display: none; }
.pmo-chat-header { display: none; }
.pmo-chat-driver-avatar { display: none; }
.pmo-chat-sub { display: none; }
.pmo-chat-icon-btn { display: none; }
.pmo-chat-send { display: none; }
.pmo-chat-sender { display: none; }

.pmo-install-banner {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 406px;
  z-index: 9000;
  background: #1A1A1A;
  color: #fff;
  border-radius: 12px;
  padding: 12px 36px 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.pmo-install-banner p { margin: 0; }
.pmo-install-banner-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

@media (min-width: 768px) {
  :root { --pmo-max: 720px; }
  body.pmo-app-body { background: #ddd; }
  .pmo-auth-page { max-width: 720px; }
  .pmo-auth-form { padding: 32px 48px 40px; }
}

@media (min-width: 1024px) {
  :root { --pmo-max: 960px; }
  .pmo-shell { border-radius: 12px; margin: 16px 0; min-height: calc(100dvh - 32px); }
  body.pmo-app-body { align-items: flex-start; padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
  .pmo-home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .pmo-home-grid .pmo-hub-card { margin: 0; }
}
