:root {
  --brand: #00b14f;
  --brand-dark: #009341;
  --brand-deep: #006b2f;
  --brand-soft: #e6f8ee;
  --brand-mint: #10b981;
  --blue: #0ea5e9;
  --blue-soft: #e0f2fe;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --red: #ef4444;
  --red-soft: #fee2e2;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 50px rgba(17, 24, 39, 0.14);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { overscroll-behavior: none; overflow-x: hidden; overflow-x: clip; }
body { overflow-x: hidden; overflow-x: clip; max-width: 100vw; }
body {
  margin: 0;
  min-width: 320px;
  font-family: "DM Sans", "Noto Sans Myanmar", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
svg.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.icon-sm { width: 15px; height: 15px; }

/* ==================== HEADER ==================== */
.site-header {
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, #00d25b, #009c44);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(0, 177, 79, 0.32);
}
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word b { font: 800 20px/1 "Manrope", sans-serif; letter-spacing: -0.6px; color: var(--sec-color, #00a344); }
.brand-word small { font-size: 10px; color: var(--muted); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: var(--muted); transition: .18s;
}
.nav-link:hover, .nav-link.active { color: var(--brand-dark); background: var(--brand-soft); }
.nav-link[href="food.php"]:hover, .nav-link[href="food.php"].active { color: #db2777; background: #fce7f3; }
.nav-link[href="index.php?p=trips"]:hover, .nav-link[href="index.php?p=trips"].active { color: #2563eb; background: #dbeafe; }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch {
  padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--ink); background: var(--white);
}
.lang-switch:hover { border-color: var(--brand); color: var(--brand-dark); }
.user-pill {
  display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 5px;
  border-radius: 99px; border: 1px solid var(--line); background: var(--white);
}
.user-pill-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-soft); }
.user-pill span { display: flex; flex-direction: column; line-height: 1.1; }
.user-pill b { font-size: 12px; }
.user-pill small { font-size: 10px; color: var(--brand-dark); font-weight: 700; }

/* ==================== BUTTONS & BADGES ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 18px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #00c456, #009944);
  color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 177, 79, 0.28); transition: .18s;
}
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn.lg { padding: 14px 22px; font-size: 15px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.btn.blue { background: linear-gradient(135deg, #0ea5e9, #0284c7); box-shadow: 0 6px 16px rgba(14, 165, 233, .28); }
.btn.amber { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 6px 16px rgba(245, 158, 11, .28); }
.btn.danger { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 6px 16px rgba(239, 68, 68, .25); }
.btn.dark { background: #111827; box-shadow: 0 6px 16px rgba(17, 24, 39, .24); }

.badge, .status-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 99px; font-size: 11.5px; font-weight: 700;
  background: #f3f4f6; color: #374151;
}
.badge.on, .status-chip.completed, .status-chip.in_trip { background: var(--brand-soft); color: var(--brand-deep); }
.badge.warning, .status-chip.searching { background: var(--amber-soft); color: #92400e; }
.badge.info, .status-chip.accepted, .status-chip.arrived_pickup { background: var(--blue-soft); color: #0369a1; }
.badge.off, .status-chip.cancelled { background: var(--red-soft); color: #991b1b; }

.flash {
  max-width: 1280px; margin: 12px auto; padding: 12px 16px; border-radius: 12px;
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600;
}
.flash-close { margin-left: auto; border: 0; background: none; font-size: 20px; cursor: pointer; color: inherit; }

/* ==================== MAP-FIRST GRAB WORKSPACE ==================== */
.map-main {
  height: calc(100vh - 62px);
  display: grid;
  grid-template-columns: 420px 1fr;
  overflow: hidden;
}
.booking-panel {
  background: var(--white);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 20;
}
.map-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: #dbeafe;
}
.live-map { width: 100%; height: 100%; z-index: 1; }

/* Fixed center pin shown while adjusting pickup by panning the map */
.pickup-center-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 800;
  pointer-events: none;
  display: grid;
  place-items: center;
}

/* Floating HUD directly on top of map */
.map-hud {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 52px;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  pointer-events: none;
}
.hud-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.12);
  border: 1px solid rgba(0, 177, 79, 0.18);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
}
.hud-pill svg { width: 12px; height: 12px; }
.hud-pill.green { background: linear-gradient(135deg, #00b14f, #009341); color: #fff; border: 0; }
.hud-pill.blue { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: #fff; border: 0; }
.hud-pill.dark { background: rgba(17, 24, 39, 0.92); color: #fff; border: 0; }
.hud-pill.dark b { font-size: 13px; }
.hud-pill.cost-live {
  background: linear-gradient(135deg, #00b14f, #009341);
  padding: 7px 14px;
  box-shadow: 0 6px 18px rgba(0, 177, 79, 0.45);
}
.hud-pill.cost-live b { font-size: 16px; font-weight: 900; letter-spacing: .2px; }
.hud-pill.cost-live svg { width: 15px; height: 15px; }
.hud-pill small { font-weight: 500; opacity: .88; }

.map-mode-bar {
  position: absolute;
  bottom: 12px;
  left: 10px;
  z-index: 500;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.map-chip-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94); color: var(--ink);
  font-size: 10.5px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.12);
}
.map-chip-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.map-chip-btn.red.active { background: var(--red); color: #fff; border-color: var(--red); }

/* Floating Rider Card on Map during active trip */
.map-rider-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 550;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 9px 11px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.2);
  border: 1px solid rgba(0, 177, 79, 0.22);
  display: none;
  max-width: 480px;
}
.map-rider-overlay.show { display: block; }
.rider-head-row { display: flex; align-items: center; gap: 9px; }
.rider-photo {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--brand); box-shadow: 0 3px 10px rgba(0, 177, 79, .3);
  flex-shrink: 0; background: var(--brand-soft);
}
.rider-meta { flex: 1; min-width: 0; }
.rider-meta h3 { margin: 0; font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 5px; }
.rider-meta .sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.rider-plate {
  display: inline-block; padding: 1px 6px; border-radius: 5px;
  background: #111827; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .5px;
}
.rider-call-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 10px;
  border-radius: 10px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700;
  white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 177, 79, .32);
}
.eta-strip {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.eta-strip.cols-2 { grid-template-columns: repeat(2, 1fr); }
.eta-box {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 9px; padding: 5px 8px;
}
.eta-box.pickup { background: var(--blue-soft); border-color: #bae6fd; }
.eta-box.reach { background: var(--brand-soft); border-color: #a7f3d0; }
.eta-box small { display: block; font-size: 8.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.eta-box b { font-size: 12px; font-weight: 800; color: var(--ink); }
.eta-box .clock { font-size: 9.5px; color: var(--brand-deep); font-weight: 700; }

/* Open booking request pins on rider map */
.req-pin {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.96); border: 1.5px solid var(--brand);
  border-radius: 99px; padding: 3px 8px;
  box-shadow: 0 4px 12px rgba(0,177,79,.28);
  font-size: 10.5px; font-weight: 800; color: #065f46; white-space: nowrap;
}
.req-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0,177,79,.3); flex-shrink: 0;
}
.req-drop-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(239,68,68,.45);
}

/* Custom Leaflet Markers & Route Badges */
.grap-pin { position: relative; width: 36px; height: 36px; display: grid; place-items: center; }
.grap-pin-pickup {
  width: 24px; height: 24px; border-radius: 50%; background: var(--brand);
  border: 4px solid #fff; box-shadow: 0 4px 12px rgba(0, 177, 79, .5);
}
.grap-pin-pickup::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 2px solid var(--brand); opacity: .5; animation: pulseRing 1.8s infinite;
}
.grap-pin-dropoff {
  width: 34px; height: 42px; display: grid; place-items: center;
}
.grap-rider-marker {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--brand); background: #fff;
  box-shadow: 0 6px 18px rgba(0, 177, 79, .45); overflow: visible;
}
.grap-rider-marker img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}
.grap-rider-marker .pulse {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid var(--brand); animation: pulseRing 1.8s infinite; pointer-events: none;
}
.grap-rider-marker .vtag {
  position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  background: #111827; color: #fff; font-size: 9px; font-weight: 800;
  padding: 1px 6px; border-radius: 99px; white-space: nowrap;
}
.route-label-pill {
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  border: 2px solid #fff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.route-label-pill.pickup { background: #0284c7; }
.route-label-pill.reach { background: #009944; }
@keyframes pulseRing {
  0% { transform: scale(.85); opacity: .75; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ==================== BOOKING PANEL CONTROLS ==================== */
.loc-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.loc-card.dropoff-card {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border: 2px solid var(--brand);
  border-radius: 18px;
  padding: 14px;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 177, 79, .14);
}
.dropoff-label {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 800; color: var(--ink);
  letter-spacing: .1px;
}
.loc-input.dropoff-input {
  padding: 14px 48px 14px 15px;
  border-radius: 13px;
  border: 1.5px solid #cbd5e1;
  background: var(--white);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(17, 24, 39, .05);
}
.loc-input.dropoff-input::placeholder { color: #6b7280; font-weight: 600; font-size: 14px; }
.loc-input.dropoff-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 177, 79, .18);
}
.loc-mini-btn.dropoff-pin-btn {
  right: 7px; width: 34px; height: 34px; border-radius: 10px;
  background: #fee2e2; color: #dc2626; pointer-events: none;
}
.loc-row { display: flex; align-items: center; gap: 9px; position: relative; }
.loc-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.loc-dot.pickup { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.loc-dot.dropoff { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.loc-input-wrap { flex: 1; position: relative; }
.loc-input {
  width: 100%; padding: 10px 36px 10px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--white); font-size: 13px; font-weight: 500;
}
.loc-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.loc-mini-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-dark); cursor: pointer;
  display: grid; place-items: center;
}
.search-results {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 900;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); max-height: 220px; overflow-y: auto; display: none;
}
.search-results.open { display: block; }
.search-item {
  padding: 9px 12px; font-size: 12.5px; cursor: pointer; border-bottom: 1px solid #f3f4f6;
  display: flex; align-items: flex-start; gap: 7px;
}
.search-item:hover { background: var(--brand-soft); }

.landmark-chips { display: flex; gap: 6px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.landmark-chips::-webkit-scrollbar { display: none; }
.landmark-chip {
  flex-shrink: 0; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--white); font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.landmark-chip:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }

/* Vehicle Picker */
.vehicle-list { display: flex; flex-direction: column; gap: 8px; }
.vehicle-card {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  border-radius: 14px; border: 2px solid var(--line); background: var(--white);
  cursor: pointer; transition: .15s;
}
.vehicle-card:hover { border-color: #86efac; }
.vehicle-card.active { border-color: var(--brand); background: #f0fdf4; box-shadow: 0 6px 18px rgba(0, 177, 79, .14); }
.v-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft);
  color: var(--brand-dark); display: grid; place-items: center; flex-shrink: 0;
}
.v-info { flex: 1; min-width: 0; }
.v-info b { display: block; font-size: 14px; font-weight: 800; }
.v-info small { display: block; font-size: 11.5px; color: var(--muted); }
.v-eta { font-size: 11px; color: var(--brand-deep); font-weight: 700; margin-top: 2px; }
.v-price { text-align: right; }
.v-price b { display: block; font-size: 15px; font-weight: 800; color: var(--ink); }
.v-price small { font-size: 11px; color: var(--muted); }

/* Payment selector — one clean row of brand-icon chips */
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 10px 6px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--white);
  font-size: 12px; font-weight: 800; cursor: pointer; text-align: center; transition: .15s;
}
.pay-chip:hover { border-color: #86efac; background: #f0fdf4; }
.pay-chip input { display: none; }
.pay-ico {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); overflow: hidden; flex-shrink: 0;
}
.pay-ico img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.pay-chip.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); box-shadow: 0 5px 14px rgba(0, 177, 79, .14); }

/* ==================== DASHBOARD PAGES ==================== */
.container { max-width: 1320px; margin: 0 auto; padding: 20px 18px 84px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.page-head h1 { margin: 0; font: 800 24px/1.15 "Manrope", sans-serif; }
.page-sub { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.spacer { flex: 1; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px; display: flex; align-items: center; gap: 13px; box-shadow: var(--shadow);
}
.stat-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark); flex-shrink: 0;
}
.stat-icon.blue { background: var(--blue-soft); color: #0284c7; }
.stat-icon.amber { background: var(--amber-soft); color: #d97706; }
.stat-icon.red { background: var(--red-soft); color: #dc2626; }
.stat-value { font: 800 21px/1.1 "Manrope", sans-serif; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

.dash-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 16px; font-weight: 800; }

.field { margin-bottom: 11px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--white); font-size: 13.5px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); background: #f9fafb; }
tr:last-child td { border-bottom: 0; }

.trip-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 15px;
  padding: 14px; margin-bottom: 10px; box-shadow: 0 4px 14px rgba(17, 24, 39, .05);
}
.trip-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.trip-addr { font-size: 13px; display: flex; flex-direction: column; gap: 5px; margin: 8px 0; }
.trip-addr-row { display: flex; align-items: center; gap: 8px; }

.settle-banner {
  background: linear-gradient(135deg, #064e3b 0%, #009341 60%, #00b14f 100%);
  color: #fff; border-radius: 18px; padding: 20px 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 18px; box-shadow: 0 14px 36px rgba(0, 147, 65, 0.28);
}
.settle-banner h2 { margin: 0 0 4px; font: 800 20px/1.2 "Manrope", sans-serif; }
.settle-banner p { margin: 0; font-size: 13px; opacity: .92; }

/* Auth Page */
.auth-wrap {
  max-width: 900px; margin: 26px auto; background: var(--white);
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1.15fr; border: 1px solid var(--line);
}
.auth-visual {
  background: linear-gradient(155deg, #00c853 0%, #009341 55%, #064e3b 100%);
  color: #fff; padding: 30px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-visual h2 { font: 800 28px/1.15 "Manrope", sans-serif; margin: 14px 0 8px; }
.auth-panel { padding: 26px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f3f4f6; padding: 4px; border-radius: 12px; margin-bottom: 16px; }
.auth-tab { border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 700; cursor: pointer; color: var(--muted); }
.auth-tab.active { background: var(--white); color: var(--brand-deep); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 12px; }
.demo-btn {
  padding: 7px 9px; border-radius: 9px; border: 1px dashed #a7f3d0; background: #f0fdf4;
  color: #065f46; font-size: 11.5px; font-weight: 700; cursor: pointer; text-align: left;
}
.demo-btn:hover { background: #dcfce7; }

/* Toast & Mobile Nav */
.toast-stack { position: fixed; top: 72px; right: 16px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: #111827; color: #fff; padding: 10px 15px; border-radius: 12px;
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 8px; transition: opacity .25s;
}
.toast.ok { background: #065f46; }
.toast.err { background: #991b1b; }

.mobile-nav {
  display: none; position: fixed; left: 10px; right: 10px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 1200;
  height: 66px; background: #ffffff; border: 1px solid var(--line);
  border-radius: 22px; box-shadow: 0 14px 34px rgba(17, 24, 39, 0.24);
  justify-content: space-around; align-items: center; padding: 0 8px; gap: 4px;
}
.mobile-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5px;
  font-size: 11px; font-weight: 800; letter-spacing: .15px; color: #64748b; padding: 8px 4px; border-radius: 16px;
  transition: color .15s ease, background .15s ease, transform .1s ease;
}
.mobile-nav a.tab-ride, .mobile-nav a.tab-food, .mobile-nav a.tab-orders, .mobile-nav a.tab-account { color: #00a344; }
.mobile-nav a.active { color: #fff; }
.mobile-nav a.tab-ride svg.icon, .mobile-nav a.tab-food svg.icon, .mobile-nav a.tab-orders svg.icon, .mobile-nav a.tab-account svg.icon { color: #00b14f; }
.mobile-nav a:active { transform: scale(.94); }
.mobile-nav a:not(.active):hover { background: #f1f5f9; color: #334155; }
.mobile-nav a.tab-ride:not(.active):hover { background: #e6f8ee; color: #00a344; }
.mobile-nav a.tab-ride:not(.active):hover svg.icon { color: #00a344; }
.mobile-nav a.tab-food:not(.active):hover { background: #e6f8ee; color: #00a344; }
.mobile-nav a.tab-food:not(.active):hover svg.icon { color: #00a344; }
.mobile-nav a.tab-orders:not(.active):hover { background: #e6f8ee; color: #00a344; }
.mobile-nav a.tab-orders:not(.active):hover svg.icon { color: #00a344; }
.mobile-nav a.tab-account:not(.active):hover { background: #e6f8ee; color: #00a344; }
.mobile-nav a.tab-account:not(.active):hover svg.icon { color: #00a344; }
.mobile-nav a.tab-ride:not(.active):active { background: #e6f8ee; color: #00a344; }
.mobile-nav a.tab-food:not(.active):active { background: #e6f8ee; color: #00a344; }
.mobile-nav a.tab-orders:not(.active):active { background: #e6f8ee; color: #00a344; }
.mobile-nav a.tab-account:not(.active):active { background: #e6f8ee; color: #00a344; }
.mobile-nav a svg.icon { width: 22px; height: 22px; }
.mobile-nav a.active {
  color: #fff; background: linear-gradient(135deg, #00b14f, #009341);
  box-shadow: 0 6px 16px rgba(0, 177, 79, .35);
}
.mobile-nav a.active svg.icon { color: #fff; }
.mobile-nav a.tab-ride.active { background: linear-gradient(135deg, #00d359, #00a344); box-shadow: 0 6px 16px rgba(0, 190, 85, .45); }
.mobile-nav a.tab-food.active { background: linear-gradient(135deg, #00d359, #00a344); box-shadow: 0 6px 16px rgba(0, 190, 85, .45); }
.mobile-nav a.tab-orders.active { background: linear-gradient(135deg, #00d359, #00a344); box-shadow: 0 6px 16px rgba(0, 190, 85, .45); }
.mobile-nav a.tab-account.active { background: linear-gradient(135deg, #00d359, #00a344); box-shadow: 0 6px 16px rgba(0, 190, 85, .45); }
.mobile-nav a.nav-logout { color: #dc2626; }
.mobile-nav a.nav-logout:active { background: #fee2e2; }

/* Incoming Ride Alarm — 50% Map on top + 50% Alarm/Accept sheet on bottom */
.ride-alarm-backdrop {
  display: none; position: fixed; inset: 0; z-index: 2500;
  background: #0f172a; flex-direction: column;
}
.ride-alarm-backdrop.show { display: flex; }
.ride-alarm-map-wrap {
  position: relative; flex: 0 0 50%; width: 100%;
  background: #dbeafe; overflow: hidden;
}
.ride-alarm-map { width: 100%; height: 100%; z-index: 1; }
.ride-alarm-map-bar {
  position: absolute; top: 10px; left: 10px; right: 56px; z-index: 600;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  pointer-events: none;
}
.alarm-map-pill {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 99px;
  background: linear-gradient(135deg, #00b14f, #009341); color: #fff;
  font-size: 12px; font-weight: 800; box-shadow: 0 6px 18px rgba(0, 0, 0, .26);
}
.alarm-map-pill.dark { background: rgba(17, 24, 39, .9); }
.alarm-bell-mini {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .22);
  display: grid; place-items: center; font-size: 13px; animation: alarmRing 1.1s infinite;
}
.ride-alarm-card {
  flex: 1 1 auto; width: 100%; background: #fff;
  border-radius: 20px; margin-top: -14px; position: relative; z-index: 10;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .28);
  border-top: 3px solid var(--brand); animation: alarmPop .2s ease;
  min-height: 50vh; overflow-y: auto;
}
.alarm-addr-compact {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 10px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 4px;
  font-size: 12px;
}
.alarm-addr-line {
  display: flex; align-items: center; gap: 7px; min-width: 0;
}
.alarm-addr-line b {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; font-weight: 700;
}
.alarm-stats-compact {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px;
}
.alarm-actions {
  display: grid; grid-template-columns: 2fr 1fr; gap: 8px;
}
.alarm-pulse-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.alarm-bell-badge {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand);
  color: #fff; display: grid; place-items: center; font-size: 19px;
  box-shadow: 0 0 0 0 rgba(0, 177, 79, .65); animation: alarmRing 1.1s infinite;
  flex-shrink: 0;
}
@keyframes alarmRing {
  0% { box-shadow: 0 0 0 0 rgba(0, 177, 79, .7); transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  50% { box-shadow: 0 0 0 12px rgba(0, 177, 79, 0); transform: rotate(10deg); }
  75% { transform: rotate(-6deg); }
  100% { box-shadow: 0 0 0 0 rgba(0, 177, 79, 0); transform: rotate(0deg); }
}
@keyframes alarmPop {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==================== RESPONSIVE MOBILE ==================== */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .mobile-nav { display: flex; }
  .container { padding-bottom: 112px; }
  .map-main {
    height: auto;
    min-height: calc(100vh - 122px);
    display: flex;
    flex-direction: column-reverse;
    overflow: visible;
    padding-bottom: 112px;
  }
  .map-stage { height: 56vh; min-height: 360px; }
  .map-main.trip-live .map-stage { height: 64vh; min-height: 410px; }
  .map-rider-overlay {
    left: 8px; right: 8px; bottom: 20px;
    padding: 4px 8px; border-radius: 10px; max-width: none;
  }
  .map-rider-overlay .rider-head-row { gap: 7px; }
  .map-rider-overlay .rider-photo { width: 30px; height: 30px; border-width: 1.5px; }
  .map-rider-overlay .rider-meta h3 { font-size: 11.5px; gap: 4px; }
  .map-rider-overlay .rider-meta h3 .badge { padding: 2px 6px; font-size: 9.5px; }
  .map-rider-overlay .rider-meta .sub { font-size: 9px; margin-top: 0; }
  .map-rider-overlay .rider-meta .rider-plate { font-size: 8.5px; padding: 0 4px; }
  .map-rider-overlay .rider-meta .status-chip { padding: 2px 6px; font-size: 9px; }
  .map-rider-overlay .eta-strip { display: none; }
  .map-rider-overlay .rider-call-btn { padding: 4px 8px; font-size: 9.5px; border-radius: 8px; }
  .booking-panel { border-right: 0; border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; margin-top: -14px; padding-bottom: 28px; box-shadow: 0 -10px 30px rgba(0,0,0,.09); }
  .dash-grid, .auth-wrap { grid-template-columns: 1fr; }
  .eta-strip { grid-template-columns: repeat(3, 1fr); }
  .eta-strip.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .map-hud { right: 12px; }
}

/* ==================== ADMIN MOBILE PROFESSIONAL ==================== */
.adm-section-nav { display: none; }

@media (max-width: 880px) {
  /* ---- sticky section jump-nav, full-bleed, edge-to-edge scroll ---- */
  .adm-section-nav {
    display: flex; gap: 7px; overflow-x: auto;
    position: sticky; top: 62px; z-index: 900;
    background: rgba(244, 247, 245, 0.95); backdrop-filter: blur(10px);
    margin: -6px -18px 14px; padding: 9px 18px 10px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .adm-section-nav::-webkit-scrollbar { display: none; }
  .adm-sec-chip {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line);
    background: var(--white); font-size: 12.5px; font-weight: 700; color: var(--ink);
    white-space: nowrap; transition: .15s;
  }
  .adm-sec-chip svg { width: 14px; height: 14px; }
  .adm-sec-chip.active, .adm-sec-chip:active {
    border-color: var(--brand); background: var(--brand);
    color: #fff; box-shadow: 0 4px 12px rgba(0, 177, 79, .28);
  }

  /* ---- page head compacts ---- */
  .adm-m .page-head h1 { font-size: 19px; }
  .adm-m .page-sub { font-size: 12px; }
  .adm-m .page-head .btn { flex: 1 1 auto; justify-content: center; }

  /* ---- stat grid: tidy 2x2 ---- */
  .adm-m .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .adm-m .stat-card { padding: 11px; gap: 9px; border-radius: 13px; }
  .adm-m .stat-icon { width: 34px; height: 34px; border-radius: 10px; }
  .adm-m .stat-icon svg { width: 16px; height: 16px; }
  .adm-m .stat-value { font-size: 15.5px; }
  .adm-m .stat-label { font-size: 10px; line-height: 1.25; }

  /* ---- panels tighten ---- */
  .adm-m .panel { padding: 12px; border-radius: 14px; scroll-margin-top: 118px; }
  .adm-m .panel-head { flex-wrap: wrap; }
  .adm-m .panel-head h2 { font-size: 14.5px; }
  .adm-m .panel-head small { font-size: 11.5px; }

  /* ---- tables become cards ---- */
  .adm-m .table-wrap {
    overflow: visible; background: transparent; border: 0;
    box-shadow: none; border-radius: 0;
  }
  .adm-m .table-wrap table, .adm-m .table-wrap tbody { display: block; width: 100%; }
  .adm-m .table-wrap thead { display: none; }
  .adm-m .table-wrap tbody tr {
    display: block; background: var(--white);
    border: 1px solid var(--line); border-radius: 14px;
    padding: 6px 13px; margin-bottom: 11px;
    box-shadow: 0 3px 10px rgba(17, 24, 39, .05);
  }
  .adm-m .table-wrap td {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 0; border-bottom: 1px dashed #eef1f3;
    text-align: right; max-width: none !important;
  }
  .adm-m .table-wrap tbody tr td:last-child { border-bottom: 0; }
  .adm-m .table-wrap td::before {
    content: attr(data-label);
    font-size: 10.5px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .5px; color: var(--muted);
    text-align: left; flex-shrink: 0; max-width: 42%;
  }
  .adm-m .table-wrap td:not([data-label])::before,
  .adm-m .table-wrap td[data-label=""]::before { display: none; }
  .adm-m .table-wrap td:not([data-label]),
  .adm-m .table-wrap td[data-label=""] { justify-content: flex-end; }

  /* full-width edit rows (rider detail editor) */
  .adm-m .table-wrap td[colspan] { display: block; text-align: left; padding: 10px 0; }
  .adm-m .table-wrap td[colspan]::before { display: none; }

  /* inputs fill their row, big enough for thumbs */
  .adm-m .table-wrap td input[type=number],
  .adm-m .table-wrap td input[type=text] {
    width: auto !important; flex: 1 1 auto; min-width: 0;
    min-height: 42px; font-size: 15px !important; padding: 8px 11px !important;
  }
  .adm-m .table-wrap td select {
    flex: 1 1 auto; min-height: 40px; font-size: 13.5px !important;
    padding: 7px 9px !important;
  }
  .adm-m .table-wrap td form {
    flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 7px;
    align-items: center; justify-content: flex-end;
  }
  .adm-m .table-wrap td form select { flex: 1 1 130px; }
  .adm-m .table-wrap td > div { flex: 1 1 auto; }

  /* thumb-friendly buttons */
  .adm-m .btn { min-height: 42px; }
  .adm-m .btn.sm { min-height: 38px; padding: 8px 15px; font-size: 13px; }

  /* quick-apply pricing bar stacks neatly */
  .adm-m input[name=global_per_km], .adm-m input[name=global_comm] {
    width: 100% !important; min-height: 42px; font-size: 15px;
  }
  #pricingPanel > form > div { flex: 1 1 130px; }
  #pricingPanel > form .btn { flex: 1 1 100%; }

  /* fleet map proportions */
  #grapAdminMap { height: 300px !important; }

  /* pending rider approval cards already card-like: tighten */
  .adm-m .trip-card { padding: 12px; }
  .adm-m .trip-card-head { flex-wrap: wrap; }
}

@media (max-width: 880px) {
  /* long-form cells read better stacked: label on top, content full-width */
  .adm-m .table-wrap td[data-label="Route · Time"] {
    flex-direction: column; align-items: stretch; gap: 3px; text-align: left;
  }
  .adm-m .table-wrap td[data-label="Route · Time"]::before { max-width: none; margin-bottom: 2px; }
  .adm-m .table-wrap td[data-label="Route · Time"] small { text-align: left; }
  .adm-m .table-wrap td[data-label="Cost · Split"] {
    flex-direction: column; align-items: stretch; gap: 3px; text-align: left;
  }
  .adm-m .table-wrap td[data-label="Cost · Split"]::before { max-width: none; margin-bottom: 2px; }
}

/* Pickup placement mode — crosshair cursor guides the next tap */
.live-map.pickup-place-mode, .live-map.pickup-place-mode .leaflet-grab {
  cursor: crosshair !important;
}

/* ==================== PROFESSIONAL POLISH — typography & brand refinement ==================== */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

/* Myanmar script needs taller line height — vowel marks stack above and below */
html[lang="my"] body, html[lang="my"] button, html[lang="my"] input, html[lang="my"] select {
  line-height: 1.8;
  letter-spacing: 0.1px;
}
html[lang="my"] .brand-word b, html[lang="my"] h1, html[lang="my"] h2, html[lang="my"] h3 {
  line-height: 1.5;
}

/* Brand wordmark — two-tone Mawlamyine Ride */
.brand-word b {
  font-size: 17.5px;
  letter-spacing: -0.4px;
  white-space: nowrap;
  color: var(--sec-color, #00a344);
}
.brand-accent {
  color: #17231c;
  margin-left: 3.5px;
  font-weight: 800;
}
body.sec-food .brand-word b { color: #db2777 !important; }
body.sec-food .brand-accent { color: #17231c; }

/* Headings — tighter, more confident */
h1, h2, h3, .page-head h1 {
  letter-spacing: -0.02em;
}

/* Buttons — premium press physics */
.btn {
  letter-spacing: 0.01em;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, filter .18s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.965); filter: brightness(0.94); }
.btn:not(.ghost):not(.danger):not(.amber):not(.blue):not(.dark) {
  box-shadow: 0 4px 14px rgba(0, 177, 79, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Cards — softer elevation, cleaner edges */
.panel, .trip-card, .loc-card, .stat-card {
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.05);
  border-color: #e9edf0;
}

/* Inputs — clearer focus */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(0, 177, 79, 0.14);
}

/* Vehicle cards — clearer selection state */
.vehicle-card { transition: border-color .15s, box-shadow .15s, transform .12s; }
.vehicle-card:active { transform: scale(0.985); }
.vehicle-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 177, 79, 0.15), 0 6px 18px rgba(0, 177, 79, 0.12);
}

/* HUD pills — glassy map chrome */
.hud-pill {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.13);
  letter-spacing: 0.01em;
}

/* Auth page — richer visual panel */
.auth-visual {
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.18);
}

/* Toasts — refined */
.toast { letter-spacing: 0.01em; box-shadow: 0 8px 24px rgba(17, 24, 39, 0.18); }

/* ==================== GRAB-STYLE BOOKING SHEET ==================== */
/* Drag handle — the signature bottom-sheet bar */
.sheet-handle {
  display: none;
  justify-content: center;
  padding: 2px 0 10px;
}
.sheet-handle span {
  width: 42px; height: 4.5px; border-radius: 99px; background: #d1d5db;
}

/* Sheet typography */
.sheet-title {
  margin: 0;
  font: 800 19px/1.15 "Manrope", "Noto Sans Myanmar", sans-serif;
  letter-spacing: -0.3px;
}
.sheet-label {
  font-size: 11px; font-weight: 800; color: #6b7280;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px;
}

/* Connected pickup→dropoff card — THE Grab signature element */
.loc-connect {
  display: flex; gap: 10px;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 13px 14px 13px 12px;
  box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 8px 24px rgba(17,24,39,.06);
}
.lc-rail {
  display: flex; flex-direction: column; align-items: center;
  width: 16px; flex-shrink: 0; padding-top: 14px;
}
.lc-dot-pickup {
  width: 11px; height: 11px; border-radius: 3.5px;
  background: var(--brand);
  box-shadow: 0 0 0 3.5px rgba(0,177,79,.16);
  flex-shrink: 0;
}
.lc-link {
  width: 2px; flex: 1; min-height: 20px; margin: 3px 0;
  background-image: linear-gradient(180deg, #9ca3af 55%, transparent 45%);
  background-size: 2px 7px;
  background-repeat: repeat-y;
}
.lc-pin-drop {
  width: 12px; height: 12px; border-radius: 50% 50% 50% 0;
  background: #e53935; transform: rotate(-45deg);
  box-shadow: 0 0 0 3.5px rgba(229,57,53,.14);
  flex-shrink: 0;
}
.lc-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.lc-row {
  display: flex; align-items: center; gap: 8px;
  border: 0; background: none; padding: 3px 2px;
  text-align: left; cursor: pointer; width: 100%;
  font: inherit; color: inherit;
}
.lc-row-in { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lc-row-in small {
  font-size: 10px; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: .5px; line-height: 1.2;
}
.lc-row-in b {
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.35;
}
.lc-row-edit {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center;
}
.lc-row-edit svg { width: 13px; height: 13px; }
.lc-divider { height: 1px; background: #eef1f3; margin: 7px 0; margin-left: 2px; }

.lc-row-static { cursor: default; padding: 0; }
.lc-dropoff-input {
  width: 100%; border: 0; background: none; padding: 4px 2px;
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.lc-dropoff-input:focus { outline: none; box-shadow: none; border: 0; }
.lc-dropoff-input::placeholder { color: #9ca3af; font-weight: 600; font-size: 14px; }
.lc-connect .search-results { top: calc(100% + 8px); left: -34px; right: -14px; }

/* Grab-style book button */
.book-cta {
  border-radius: 14px !important;
  font-size: 15.5px !important;
  padding: 14px 20px !important;
  letter-spacing: 0;
}

/* Grab-style vehicle rows — flatter, checkmark selection */
.vehicle-card {
  border-width: 1.5px;
  border-radius: 13px;
  padding: 10px 12px;
  position: relative;
}
.vehicle-card.active { background: #f0fdf4; }
.vehicle-card.active::after {
  content: "";
  position: absolute; right: 12px; top: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center/11px no-repeat;
}
.vehicle-card.active .v-price { padding-right: 24px; }
.v-icon { border-radius: 10px; }

/* Grab-style payment chips — flatter, compact */
.pay-chip {
  flex-direction: row; gap: 7px; padding: 9px 8px;
  border-radius: 11px; font-size: 11.5px;
}
.pay-ico { width: 26px; height: 26px; border-radius: 7px; }

/* ==================== GRAB-STYLE FLAT BOTTOM NAV ==================== */
.mobile-nav {
  left: 0; right: 0; bottom: 0;
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding: 0 4px env(safe-area-inset-bottom, 0px);
  border: 0; border-radius: 0;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -3px 16px rgba(17, 24, 39, 0.07);
}
.mobile-nav a {
  font-size: 9.8px; font-weight: 700; color: #9ca3af;
  gap: 3px; border-radius: 0; position: relative;
}
.mobile-nav a.active {
  color: var(--brand-dark);
  background: none; box-shadow: none;
}
.mobile-nav a.active::before {
  content: "";
  position: absolute; top: 0; left: 22%; right: 22%;
  height: 2.5px; border-radius: 0 0 4px 4px; background: var(--brand);
}
.mobile-nav a svg.icon { width: 21px; height: 21px; }

/* ==================== GRAB-STYLE MOBILE SHEET OVERLAP ==================== */
@media (max-width: 960px) {
  .map-stage { height: 62vh; min-height: 400px; }
  .map-main.trip-live .map-stage { height: 64vh; min-height: 410px; }
  .booking-panel {
    margin-top: -26px;
    border-radius: 22px 22px 0 0;
    border-top: 0;
    padding-top: 8px;
    box-shadow: 0 -12px 34px rgba(17, 24, 39, 0.16);
    position: relative;
    z-index: 30;
  }
  .sheet-handle { display: flex; }
  .container { padding-bottom: 96px; }
  .map-main { padding-bottom: 96px; }
}

/* ==================== NATIVE APP — hide duplicate web header ==================== */
/* pure-webview app: web header renders inside the app — no native bar since v16 */
@media (max-width: 960px) {
  .in-native-app .toast-stack { top: 12px; }
}
.in-native-app .toast-stack { top: 14px; }

/* ==================== GRABFOOD — horizontal scroll rows & featured cards ==================== */
.hscroll {
  display: flex; gap: 11px; overflow-x: auto; padding: 2px 2px 10px;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex-shrink: 0; }

.eats-sec-title {
  margin: 16px 0 9px; font: 800 16px/1.2 "Manrope", "Noto Sans Myanmar", sans-serif;
  letter-spacing: -0.2px; display: flex; align-items: center; gap: 7px;
}
.eats-sec-title small { font-size: 11px; color: var(--muted); font-weight: 600; }

/* Big featured shop hero card */
.feat-card {
  position: relative; border-radius: 20px; overflow: hidden; display: block;
  border: 1px solid #e5e7eb; background: var(--white);
  box-shadow: 0 4px 18px rgba(17,24,39,.08);
}
.feat-photo {
  width: 100%; height: 150px; object-fit: cover; display: block; background: #e6f8ee;
}
.feat-body { padding: 12px 14px 13px; }
.feat-badge {
  position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff;
  font-size: 10.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px;
  box-shadow: 0 4px 10px rgba(217,119,6,.4);
}

/* Horizontal shop cards */
.shop-hcard {
  width: 152px; background: var(--white); border: 1px solid #e9edf0; border-radius: 15px;
  overflow: hidden; display: block;
  box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 6px 16px rgba(17,24,39,.05);
}
.shop-hcard:active { transform: scale(.97); }
.shop-hcard img {
  width: 100%; height: 92px; object-fit: cover; display: block; background: #f0fdf4;
}
.shop-hcard .shc-body { padding: 8px 10px 10px; }
.shop-hcard .shc-name {
  font-size: 12.5px; font-weight: 800; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-hcard .shc-meta { font-size: 10.5px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.shop-hcard .shc-dist {
  display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 800;
  color: var(--brand-deep); background: var(--brand-soft); border-radius: 99px; padding: 2px 7px;
}

/* Horizontal dish/product cards */
.dish-hcard {
  width: 138px; background: var(--white); border: 1px solid #e9edf0; border-radius: 15px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 6px 16px rgba(17,24,39,.05);
}
.dish-hcard img {
  width: 100%; height: 86px; object-fit: cover; display: block; background: #f0fdf4;
}
.dish-hcard .dhc-body { padding: 8px 9px 9px; display: flex; flex-direction: column; flex: 1; }
.dish-hcard .dhc-name {
  font-size: 11.5px; font-weight: 800; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dish-hcard .dhc-shop { font-size: 9.5px; color: var(--muted); font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dish-hcard .dhc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.dish-hcard .dhc-price { font-size: 12px; font-weight: 800; color: #009341; }
.dish-hcard .dhc-add {
  border: 0; border-radius: 8px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 800; padding: 4px 9px; cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,177,79,.3);
}
.dish-hcard .dhc-add:active { transform: scale(.93); }

/* Vertical all-shops column rows */
.shop-row {
  display: flex; gap: 12px; background: var(--white); border: 1px solid #e9edf0;
  border-radius: 16px; padding: 12px; margin-bottom: 11px;
  box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 6px 16px rgba(17,24,39,.05);
}
.shop-row > img {
  width: 74px; height: 74px; border-radius: 13px; object-fit: cover;
  background: #f0fdf4; border: 1px solid #d1fae5; flex-shrink: 0;
}

/* ==================== ORDER PROGRESS STEPPER — realtime delivery tracking ==================== */
.op-steps { display: flex; align-items: flex-start; margin: 12px 0 4px; }
.op-step { flex: 1; text-align: center; position: relative; }
.op-step::before {
  content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px;
  background: #e5e7eb; z-index: 0; border-radius: 2px;
}
.op-step:first-child::before { display: none; }
.op-step.done::before, .op-step.now::before { background: var(--brand); }
.op-dot {
  position: relative; z-index: 1; width: 28px; height: 28px; margin: 0 auto;
  border-radius: 50%; background: #e5e7eb; color: #9ca3af;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  border: 2.5px solid #fff; box-shadow: 0 1px 3px rgba(17,24,39,.12);
}
.op-step.done .op-dot { background: var(--brand); color: #fff; }
.op-step.now .op-dot {
  background: #fff; color: var(--brand-deep); border-color: var(--brand);
  animation: opPulse 1.6s ease-in-out infinite;
}
@keyframes opPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,177,79,.35); }
  50% { box-shadow: 0 0 0 7px rgba(0,177,79,0); }
}
.op-lbl { font-size: 9.5px; font-weight: 700; color: #9ca3af; margin-top: 4px; line-height: 1.2; }
.op-step.done .op-lbl { color: var(--brand-deep); }
.op-step.now .op-lbl { color: var(--brand-deep); }
.op-live-row {
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
  color: var(--brand-deep); background: var(--brand-soft); border-radius: 8px;
  padding: 5px 9px; margin-top: 8px; width: fit-content;
}
.op-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: opBlink 1.2s infinite; }
@keyframes opBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.shop-row { cursor: pointer; transition: transform .12s ease, box-shadow .2s; }
.shop-row:active { transform: scale(.985); }

/* ==================== INTERACTIVE CART — steppers & floating checkout bar ==================== */
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.step-btn {
  border: 0; border-radius: 8px; background: var(--brand); color: #fff;
  font-size: 12.5px; font-weight: 800; padding: 5px 10px; cursor: pointer; line-height: 1.25;
  box-shadow: 0 3px 8px rgba(0,177,79,.3); transition: transform .1s;
  -webkit-tap-highlight-color: transparent; user-select: none; touch-action: manipulation;
}
.step-btn:active { transform: scale(.88); }
.step-btn.step-minus {
  background: #fff; color: var(--brand-deep); border: 1.5px solid var(--brand); box-shadow: none;
}
.step-btn.step-plus-wide { padding: 5px 12px; }
.step-qty { font-size: 12.5px; font-weight: 800; min-width: 13px; text-align: center; color: #111827; }
.stepper.qty-zero .step-minus, .stepper.qty-zero .step-qty { display: none; }
.step-btn.bump { animation: stepBump .25s ease; }
@keyframes stepBump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* Big clean centered floating checkout bar */
.cart-float-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 1150;
  width: min(calc(100vw - 24px), 420px); height: 50px; box-sizing: border-box;
  background: var(--brand, #00b14f); color: #fff;
  border-radius: 14px; padding: 0 8px 0 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 6px 18px rgba(0,147,65,.28), 0 1px 3px rgba(17,24,39,.12);
  font-weight: 700; text-decoration: none;
  animation: cfbIn .28s cubic-bezier(.2,.9,.3,1.1);
  -webkit-tap-highlight-color: transparent;
}
@keyframes cfbIn { from { transform: translateX(-50%) translateY(16px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
.cart-float-bar:active { transform: translateX(-50%) scale(.98); }
.cfb-count {
  background: rgba(255,255,255,.2); border-radius: 8px; padding: 0 9px; height: 28px;
  font-size: 13px; line-height: 1; white-space: nowrap; display: flex; align-items: center; gap: 5px;
}
.cfb-total { flex: 1; text-align: left; font-size: 15px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cfb-go {
  background: #fff; color: var(--brand-dark, #009341); border-radius: 10px; padding: 0 14px; height: 34px;
  display: flex; align-items: center;
  font-size: 13px; font-weight: 800; white-space: nowrap;
}
.cart-float-bar.hidden-bar { display: none; }
@media (max-width: 880px) {
  body:has(.cart-float-bar:not(.hidden-bar)) .container { padding-bottom: 136px; }
}

/* Mini toast for cart feedback */
.cart-toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(118px + env(safe-area-inset-bottom, 0px)); z-index: 1200;
  background: #111827; color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 8px 15px; border-radius: 99px; box-shadow: 0 6px 20px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none; transition: opacity .2s, bottom .25s;
}
.cart-toast.show { opacity: 1; bottom: calc(126px + env(safe-area-inset-bottom, 0px)); }

/* ==================== MAWLAMYINE EATS v2 — food home, shop menu, checkout ==================== */
.ef-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ef-brand { display: flex; align-items: center; gap: 9px; min-width: 0; text-decoration: none; }
.ef-brand-mark {
  width: 36px; height: 36px; border-radius: 11px; background: var(--brand);
  display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
}
.ef-brand-word { font: 800 18px/1.15 "Manrope", "Noto Sans Myanmar", sans-serif; color: #db2777; letter-spacing: -.4px; }
.ef-brand-word span { color: #17231c; }
.ef-top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ef-icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid #e8ebee; color: var(--ink);
  display: grid; place-items: center;
}
.ef-icon-btn:active { background: #f3f4f6; }
.ef-icon-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: #ef4444; color: #fff; border: 2px solid #fff; box-sizing: content-box;
  font-size: 10px; font-weight: 800; line-height: 1; place-items: center;
}

.ef-deliver { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-width: 0; }
.ef-deliver-pin {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; flex-shrink: 0;
}
.ef-deliver-txt { min-width: 0; display: flex; flex-direction: column; }
.ef-deliver-txt small { font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.ef-deliver-txt b { font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ef-search {
  position: relative; display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px;
  background: #fff; border: 1px solid #e8ebee; border-radius: 14px; margin: 0 0 14px; color: #9ca3af;
}
.ef-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ef-search svg { flex-shrink: 0; }
.ef-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0;
  font-family: inherit; font-size: 14.5px; font-weight: 500; line-height: 1.2; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.ef-search input::placeholder { color: #9ca3af; }
.ef-search input::-webkit-search-cancel-button { display: none; }
.ef-search-clear { width: 24px; height: 24px; border-radius: 50%; background: #eef0f2; color: #6b7280; font-size: 11px; display: grid; place-items: center; flex-shrink: 0; text-decoration: none; }
.ef-search-sm { height: 42px; margin-bottom: 10px; }

.ef-cats { display: flex; gap: 4px; overflow-x: auto; margin: 0 -4px 6px; padding: 2px 4px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ef-cats::-webkit-scrollbar { display: none; }
.ef-cat { flex: 0 0 68px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: #4b5563; }
.ef-cat-ico {
  width: 54px; height: 54px; border-radius: 18px; background: #fff; border: 1px solid #e8ebee;
  display: grid; place-items: center; font-size: 25px; transition: transform .12s;
}
.ef-cat-ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.ef-cat-ico:has(img) { padding: 0; overflow: hidden; }
.ef-cat:active .ef-cat-ico { transform: scale(.94); }
.ef-cat-lbl { font-size: 11px; font-weight: 600; line-height: 1.25; text-align: center; max-width: 68px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ef-cat.active .ef-cat-ico { background: var(--brand-soft); border-color: var(--brand); }
.ef-cat.active .ef-cat-lbl { color: var(--brand-dark); font-weight: 800; }

.ef-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 20px 0 10px; }
.ef-sec h2 { margin: 0; font: 800 17px/1.25 "Manrope", "Noto Sans Myanmar", sans-serif; letter-spacing: -.3px; color: var(--ink); }
.ef-sec small { font-size: 12px; font-weight: 600; color: var(--muted); }
.ef-row { gap: 12px; padding: 0 0 4px; }

.ef-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 0; font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.35; }
.ef-meta > span:not([hidden]) + span:not([hidden])::before { content: "·"; margin: 0 6px; color: #c4c9cf; }
.ef-rate { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink); }
.ef-rate svg { width: 12px; height: 12px; color: #f59e0b; }
.ef-price { font-size: 13.5px; font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Featured restaurant */
.ef-hero { position: relative; display: block; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #eceff1; text-decoration: none; color: inherit; }
.ef-hero > img { width: 100%; height: 156px; object-fit: cover; display: block; background: #eef2f0; }
.ef-hero-tag { position: absolute; top: 12px; left: 12px; background: rgba(17,24,39,.82); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 99px; }
.ef-hero-body { padding: 12px 14px 14px; }
.ef-hero-name { font: 800 17px/1.3 "Manrope", "Noto Sans Myanmar", sans-serif; letter-spacing: -.2px; margin-bottom: 4px; }

/* Horizontal restaurant cards */
.ef-scard { width: 156px; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.ef-scard-img { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #eef2f0; margin-bottom: 8px; }
.ef-scard-img img { width: 100%; height: 104px; object-fit: cover; display: block; }
.ef-scard-img em, .ef-shop-img em {
  position: absolute; inset: 0; background: rgba(17,24,39,.55); color: #fff;
  display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700;
}
.ef-scard-img em.ef-dist {
  inset: auto auto 8px 8px; background: #fff; color: var(--ink); padding: 3px 8px; border-radius: 99px;
  font-size: 11px; box-shadow: 0 1px 4px rgba(17,24,39,.18);
}
.ef-scard-img em[hidden] { display: none; }
.ef-scard-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; margin-bottom: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ef-scard:active .ef-scard-img { opacity: .85; }

/* Order again */
.ef-again { width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.ef-again img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #eef2f0; border: 1px solid #e8ebee; }
.ef-again span { font-size: 11px; font-weight: 600; line-height: 1.25; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Dish cards */
.ef-dish { width: 140px; display: flex; flex-direction: column; background: #fff; border: 1px solid #eceff1; border-radius: 14px; overflow: hidden; }
.ef-dish-img img { width: 100%; height: 96px; object-fit: cover; display: block; background: #eef2f0; }
.ef-dish-name { padding: 8px 10px 0; font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ef-dish-shop { padding: 2px 10px 0; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ef-dish-foot { margin-top: auto; padding: 8px 10px 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 48px; }

/* Round steppers */
.ef-stepper { gap: 4px; }
.ef-stepper .step-btn {
  width: 30px; height: 30px; padding: 0; border-radius: 50%; font-size: 17px; line-height: 1; font-weight: 600;
  display: inline-grid; place-items: center; box-shadow: none; background: var(--brand); color: #fff; border: 0;
}
.ef-stepper .step-btn.step-minus { background: #fff; color: var(--brand-dark); border: 1.5px solid #cfe9da; }
.ef-stepper .step-qty { min-width: 20px; font-size: 13.5px; font-weight: 800; }
.ef-stepper.sm .step-btn { width: 26px; height: 26px; font-size: 15px; }
.ef-stepper.sm .step-qty { min-width: 16px; font-size: 12.5px; }

/* Restaurant list */
.ef-list { display: flex; flex-direction: column; gap: 12px; }
.ef-shop { background: #fff; border: 1.5px solid #d8dfe3; border-radius: 16px; padding: 12px; cursor: pointer; box-shadow: 0 2px 8px rgba(17, 24, 39, 0.07); margin-bottom: 4px; }
.ef-shop:active { background: #fafbfb; }
.ef-shop-head { display: flex; gap: 12px; }
.ef-shop-img { position: relative; width: 104px; height: 104px; border-radius: 12px; overflow: hidden; background: #eef2f0; flex-shrink: 0; }
.ef-shop-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ef-shop-info { flex: 1; min-width: 0; }
.ef-shop-info h3 { margin: 0; font-size: 15.5px; font-weight: 800; line-height: 1.3; letter-spacing: -.1px; }
.ef-shop-my { font-size: 12.5px; color: var(--muted); font-weight: 500; line-height: 1.5; }
.ef-shop-info .ef-meta { margin-top: 4px; }
.ef-meta-sub { font-size: 11.5px; flex-wrap: nowrap; }
.ef-addr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ef-shop.closed .ef-shop-info { opacity: .6; }
.ef-mini-row { margin-top: 12px; padding: 12px 0 0; gap: 8px; border-top: 1.5px dashed #e2e8f0; }
.ef-mini { width: 124px; position: relative; border-radius: 12px; overflow: hidden; background: #111; flex-shrink: 0; }
.ef-mini-img { width: 100%; height: 112px; object-fit: cover; display: block; background: #eef2f0; }
.ef-mini-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 7px; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.55) 38%, rgba(0,0,0,.82)); }
.ef-mini-name { font-size: 11.5px; font-weight: 700; line-height: 1.25; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.ef-mini-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 3px 0 0; min-height: 26px; }
.ef-mini .ef-price { font-size: 11.5px; color: #fff; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* Empty + notice */
.ef-empty { text-align: center; padding: 44px 20px; background: #fff; border: 1px solid #eceff1; border-radius: 16px; }
.ef-empty-ico { font-size: 40px; margin-bottom: 8px; }
.ef-empty b { display: block; font-size: 16px; }
.ef-empty p { margin: 6px 0 14px; font-size: 13px; color: var(--muted); }
.ef-notice { margin-top: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; }

/* Shop page */
.ef-shophero { position: relative; border-radius: 18px; overflow: hidden; background: #eef2f0; }
.ef-shophero > img { width: 100%; height: 176px; object-fit: cover; display: block; }
.ef-back {
  position: absolute; top: 12px; left: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(17,24,39,.18); text-decoration: none;
}
.ef-back-right { left: auto; right: 12px; }
.ef-back.static { position: static; box-shadow: none; border: 1px solid #e8ebee; flex-shrink: 0; }
.ef-shopcard { position: relative; margin: -28px 12px 0; background: #fff; border: 1px solid #eceff1; border-radius: 16px; padding: 14px; box-shadow: 0 6px 20px rgba(17,24,39,.07); }
.ef-shopcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ef-shopcard h1 { margin: 0; font: 800 19px/1.3 "Manrope", "Noto Sans Myanmar", sans-serif; letter-spacing: -.3px; }
.ef-open { flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-deep); }
.ef-open.off { background: #f3f4f6; color: #6b7280; }
.ef-shopcard-addr { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ef-shopcard-addr svg { flex-shrink: 0; margin-top: 1px; width: 14px; height: 14px; }

.ef-menu { background: #fff; border: 1px solid #eceff1; border-radius: 16px; padding: 0 14px; }
.ef-menu:empty { display: none; }
.ef-mi { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f1f3f4; }
.ef-mi:last-child { border-bottom: 0; }
.ef-mi-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ef-mi-txt b { font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.ef-mi-txt small { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 1px; }
.ef-mi-txt .ef-price { margin-top: auto; padding-top: 8px; font-size: 14.5px; }
.ef-mi-side { position: relative; width: 96px; flex-shrink: 0; padding-bottom: 14px; }
.ef-mi-side img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; display: block; background: #eef2f0; }
.ef-mi-side .ef-stepper {
  position: absolute; right: 4px; bottom: 0; background: #fff; border-radius: 99px; padding: 3px;
  box-shadow: 0 2px 10px rgba(17,24,39,.16);
}

/* Checkout */
.ef-pagehead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ef-pagehead h1 { margin: 0; font: 800 20px/1.2 "Manrope", "Noto Sans Myanmar", sans-serif; letter-spacing: -.3px; }
.ef-card { background: #fff; border: 1px solid #eceff1; border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.ef-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ef-card-head h2 { margin: 0; font-size: 15.5px; font-weight: 800; line-height: 1.3; }
.ef-card-head small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ef-link { background: none; border: 0; padding: 0; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--brand-dark); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; white-space: nowrap; }
.ef-link svg { width: 14px; height: 14px; }
.ef-link.danger { color: #dc2626; }
.ef-ci { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #f1f3f4; }
.ef-ci > img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #eef2f0; flex-shrink: 0; }
.ef-ci-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ef-ci-txt b { font-size: 14px; font-weight: 700; line-height: 1.3; }
.ef-ci-txt small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.ef-ci-txt .ef-price { margin-top: 3px; }
.ef-sum { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; color: #374151; }
.ef-sum b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ef-sum.total { margin-top: 8px; padding-top: 12px; border-top: 1px solid #eceff1; font-size: 16px; }
.ef-sum.total span, .ef-sum.total b { font-weight: 800; color: var(--ink); }
.ef-sum-note { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.btn.ef-cta { margin-top: 14px; height: 50px; border-radius: 14px; font-size: 15px; font-weight: 800; justify-content: center; }
@media (max-width: 880px) {
  .ef-checkout { display: block; }
}

/* ==================== ACCOUNT PAGE v2 — profile & grouped menu ==================== */
.ac-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ac-ava { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(17,24,39,.12); background: #eef2f0; }
.ac-id h1 { margin: 0; font: 800 19px/1.25 "Manrope", "Noto Sans Myanmar", sans-serif; letter-spacing: -.3px; }
.ac-phone { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.ac-chips { display: flex; gap: 6px; margin-top: 6px; }
.ac-chip { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #f3f4f6; color: #4b5563; }
.ac-chip.role { background: var(--brand-soft); color: var(--brand-deep); }
.ac-stats { display: flex; gap: 10px; margin-bottom: 16px; }
.ac-stat { flex: 1; background: #fff; border: 1px solid #eceff1; border-radius: 14px; padding: 12px 8px; text-align: center; }
.ac-stat b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.ac-stat small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.ac-card { background: #fff; border: 1px solid #eceff1; border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.ac-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid #f3f4f5; cursor: pointer; }
.ac-row:last-child { border-bottom: 0; }
.ac-row:active { background: #fafbfb; }
.ac-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.ac-ico svg { width: 18px; height: 18px; }
.ac-ico.green { background: var(--brand-soft); color: var(--brand-deep); }
.ac-ico.blue { background: #e0f2fe; color: #0369a1; }
.ac-ico.orange { background: #fff7ed; color: #c2410c; }
.ac-ico.purple { background: #f5f3ff; color: #6d28d9; }
.ac-ico.gray { background: #f3f4f6; color: #4b5563; }
.ac-lbl { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; }
.ac-chev { font-size: 20px; color: #c4c9cf; font-weight: 400; }
.ac-details summary { list-style: none; }
.ac-details summary::-webkit-details-marker { display: none; }
.ac-details[open] summary { border-bottom: 1px solid #f3f4f5; }

/* Fly-to-cart animation dot */
.fly-cart-dot {
  position: fixed; width: 20px; height: 20px; border-radius: 50%;
  background: #00B14F; z-index: 9999; pointer-events: none;
  box-shadow: 0 3px 10px rgba(0,177,79,.45);
  transition: transform .58s cubic-bezier(.45,-.15,.55,1), opacity .58s ease;
}
.ef-icon-badge.bump { animation: stepBump .3s ease; }

/* Fly-to-cart — real product photo arcs down into the cart bar, shrinking */
.fly-cart-img {
  position: fixed; z-index: 9999; pointer-events: none; object-fit: cover;
  border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.32);
  transition: transform .55s cubic-bezier(.4,.05,.55,1), opacity .55s ease, border-radius .55s ease;
}
#cartFloatBar.bump { animation: cartBumpSoft .3s ease; }
@keyframes cartBumpSoft { 0% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.045); } 100% { transform: translateX(-50%) scale(1); } }

/* ===== Scroll-aware chrome — hide nav on scroll down, reveal on scroll up ===== */
.mobile-nav { transition: transform .28s cubic-bezier(.3,.7,.3,1), opacity .22s ease; will-change: transform; }
body.nav-hidden .mobile-nav {
  transform: translateY(calc(100% + 20px));
  opacity: 0;
  pointer-events: none;
}
.cart-float-bar { transition: bottom .28s cubic-bezier(.3,.7,.3,1); }
body.nav-hidden .cart-float-bar { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 880px) {
  body.nav-hidden:has(.cart-float-bar:not(.hidden-bar)) .container { padding-bottom: 80px; }
}

/* ===== Live search suggestions ===== */
.ef-search { position: relative; }
.ef-suggest {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 900;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(17,24,39,.18); overflow: hidden; max-height: 320px; overflow-y: auto;
}
.ef-suggest.open { display: block; }
.ef-sug-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid #f1f5f9;
}
.ef-sug-row:last-child { border-bottom: none; }
.ef-sug-row:active { background: #f8fafc; }
.ef-sug-row img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.ef-sug-emoji { width: 40px; height: 40px; border-radius: 10px; background: #f1f5f9; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.ef-sug-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ef-sug-txt b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ef-sug-txt small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ef-sug-price { font-size: 12.5px; font-weight: 800; color: var(--brand-dark); white-space: nowrap; }

/* Ride search — local landmark rows */
.search-item.local-place { display: flex; align-items: center; gap: 9px; }
.search-item.local-place .si-pin { font-size: 15px; flex-shrink: 0; }
.search-item.local-place b { font-size: 13px; display: block; }
.search-item.local-place small { font-size: 11px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }

/* Trash/delete icon buttons (cart) */
.ef-trash-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid #fecaca;
  background: #fef2f2; color: #dc2626; cursor: pointer; transition: .15s;
  padding: 0;
}
.ef-trash-btn:hover { background: #fee2e2; border-color: #f87171; }
.ef-trash-btn:active { transform: scale(.92); }
.ef-trash-btn svg { width: 17px; height: 17px; }
.ef-trash-btn.sm { width: 28px; height: 28px; border-radius: 8px; margin-left: 4px; align-self: center; }
.ef-trash-btn.sm svg { width: 14px; height: 14px; }

/* ===== Order progress tracker — animated status timeline ===== */
.otracker { position: relative; padding: 18px 6px 6px; margin-bottom: 14px; }
.ot-rail {
  position: absolute; top: 37px; left: 8%; right: 8%; height: 4px;
  background: #e5e7eb; border-radius: 99px; overflow: hidden;
}
.ot-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #00b14f, #00d359);
  transition: width .6s cubic-bezier(.3,.7,.3,1);
  position: relative; overflow: hidden;
}
.ot-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: otShine 1.6s linear infinite;
}
@keyframes otShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ot-steps { position: relative; display: flex; justify-content: space-between; }
.ot-step { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 20%; }
.ot-ico {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 18px; background: #fff; border: 2px solid #e5e7eb; color: #9ca3af;
  transition: .3s; position: relative; z-index: 1;
}
.ot-step small { font-size: 10px; font-weight: 700; color: #9ca3af; text-align: center; line-height: 1.2; }
.ot-step.done .ot-ico { background: var(--brand); border-color: var(--brand); color: #fff; font-size: 15px; font-weight: 900; }
.ot-step.done small { color: var(--brand-dark); }
.ot-step.active .ot-ico {
  background: #fff; border-color: var(--brand); color: var(--ink);
  box-shadow: 0 0 0 5px rgba(0,177,79,.16);
  animation: otPulse 1.4s ease-in-out infinite;
}
.ot-step.active small { color: var(--brand-dark); font-weight: 800; }
@keyframes otPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0,177,79,.18); }
  50% { box-shadow: 0 0 0 9px rgba(0,177,79,.06); }
}
/* RUNNING effect — the bike/rider visibly moving */
.ot-step.running .ot-ico { animation: otPulse 1.4s ease-in-out infinite, otRun 0.85s ease-in-out infinite; }
@keyframes otRun {
  0%, 100% { transform: translateX(-4px) rotate(-4deg); }
  50% { transform: translateX(4px) rotate(4deg); }
}
.ot-note {
  margin-top: 10px; text-align: center; font-size: 12.5px; font-weight: 700; color: #065f46;
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; padding: 8px 10px;
}
.ot-note.run { position: relative; overflow: hidden; }
.ot-note.run::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,177,79,.08), transparent);
  animation: otShine 1.8s linear infinite;
}
.otracker-cancel {
  margin-bottom: 14px; text-align: center; font-size: 13px; font-weight: 800; color: #b91c1c;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 10px;
}

/* Bicycle/motorbike live rider marker on tracking map */
.bike-marker { background: none; border: none; }
.bike-dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 2.5px solid #00b14f;
  display: grid; place-items: center; font-size: 17px;
  box-shadow: 0 3px 10px rgba(0,0,0,.3), 0 0 0 4px rgba(0,177,79,.15);
  animation: bikeBob 1.1s ease-in-out infinite;
}
@keyframes bikeBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-3px) rotate(3deg); }
}

/* Admin manual rider assignment — tick-to-assign checkbox popover */
.assign-pop { position: relative; display: inline-block; }
.assign-pop > summary { list-style: none; }
.assign-pop > summary::-webkit-details-marker { display: none; }
.assign-pop[open] > summary { background: #00b14f; color: #fff; border-color: #00b14f; }
.assign-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0,0,0,.16); padding: 8px; min-width: 215px;
  max-height: 290px; overflow-y: auto;
}
.assign-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 6px;
  border-radius: 9px; cursor: pointer; font-size: 12.5px;
}
.assign-row:hover { background: #f0fdf4; }
.assign-row input[type=checkbox] { width: 17px; height: 17px; accent-color: #00b14f; cursor: pointer; flex-shrink: 0; }
.assign-row .assign-veh { font-size: 17px; flex-shrink: 0; }
.assign-row .assign-name { flex: 1; font-weight: 700; line-height: 1.25; }
.assign-row .assign-name small { color: #6b7280; font-weight: 600; }
.assign-row.incompat { opacity: .45; }
.assign-row.incompat:hover { opacity: .8; }
.assign-dot { width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; flex-shrink: 0; }
.assign-dot.on { background: #22c55e; box-shadow: 0 0 0 2.5px rgba(34,197,94,.2); }

/* Vehicle emoji badge corner on rider photo map markers */
.grap-rider-marker { position: relative; }
.grap-rider-marker .vem {
  position: absolute; right: -5px; bottom: -3px;
  width: 19px; height: 19px; border-radius: 50%;
  background: #fff; border: 1.5px solid #00b14f;
  display: grid; place-items: center; font-size: 11px;
  box-shadow: 0 1px 4px rgba(0,0,0,.25); z-index: 2;
}
.req-pin .req-veh { font-size: 12px; margin-right: 2px; }

/* Add-on modifier bottom sheet */
.ef-sheet-back {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  animation: efSheetFade .18s ease;
}
@keyframes efSheetFade { from { opacity: 0; } to { opacity: 1; } }
.ef-sheet {
  background: #fff; width: 100%; max-width: 520px;
  border-radius: 20px; height: 85vh; max-height: 88vh;
  display: flex; flex-direction: column; overflow: hidden;
  animation: efSheetUp .24s cubic-bezier(.3,.9,.4,1);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
@keyframes efSheetUp { from { transform: translateY(60px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
.ef-sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; border-bottom: 1px solid #f1f3f4; position: sticky; top: 0; background: #fff; z-index: 2; border-radius: 20px 20px 0 0; }
.ef-sheet-head img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.ef-sheet-title { flex: 1; min-width: 0; }
.ef-sheet-title b { font-size: 15px; display: block; }
.ef-sheet-title small { color: #6b7280; font-size: 12px; }
.ef-sheet-x { width: 30px; height: 30px; border-radius: 50%; border: none; background: #f3f4f6; font-size: 13px; cursor: pointer; flex-shrink: 0; }
.ef-sheet-groups { padding: 4px 14px; flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ef-sheet-grp { padding: 10px 0; border-bottom: 1px solid #f6f7f8; }
.ef-sheet-grp-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ef-sheet-grp-head b { font-size: 13.5px; }
.ef-sheet-grp-head small { font-size: 11px; color: #9ca3af; font-weight: 600; }
.ef-sheet-grp-head em { font-style: normal; color: #dc2626; }
.ef-sheet-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ef-chip {
  border: 1.5px solid #e5e7eb; background: #fff; border-radius: 999px;
  padding: 7px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; color: #374151;
}
.ef-chip small { color: #009341; font-weight: 800; font-size: 11px; }
.ef-chip.on { border-color: #00b14f; background: #f0fdf4; color: #047857; box-shadow: 0 0 0 1px #00b14f inset; }
.ef-sheet-foot { display: flex; gap: 10px; align-items: center; padding: 12px 14px 6px; position: sticky; bottom: 0; background: #fff; }
.ef-sheet-qty { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid #e5e7eb; border-radius: 999px; padding: 4px 10px; }
.ef-sheet-qty .step-btn { border: none; background: none; font-size: 17px; font-weight: 800; color: #00b14f; cursor: pointer; padding: 2px 6px; }
.ef-sheet-qty b { min-width: 16px; text-align: center; font-size: 14px; }
.ef-sheet-add { flex: 1; }
.ef-ci-addons { color: #047857 !important; font-weight: 600; }

/* Owner console home cards */
.adm-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.adm-home-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 14px 12px; text-decoration: none; color: #111827; box-shadow: 0 2px 6px rgba(17,24,39,.05); transition: transform .12s ease, box-shadow .12s ease; }
.adm-home-card:active { transform: scale(.97); }
.adm-home-card b { font-size: 14px; }
.adm-home-card small { color: #6b7280; font-size: 11px; line-height: 1.35; }
.ahc-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; }

/* Addon editor modal — mobile readability */
.ef-addon-modal b { font-size: 16px; }
.ef-addon-modal input, .ef-addon-modal select { font-size: 15px !important; padding: 10px !important; }
.ef-addon-modal .btn { font-size: 14px; padding: 10px 14px; }
.ef-addon-modal label { font-size: 12.5px !important; }
@media (max-width: 600px) {
  .ef-addon-mback { padding: 8px !important; }
  .ef-addon-modal { max-width: 100% !important; height: 92vh !important; border-radius: 16px !important; padding: 16px !important; }
}

/* horizontal scroll rows keep working inside the locked page */
.hscroll, .ef-mini-row, .ef-row { touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.table-wrap { touch-action: pan-x pan-y; }

/* fit-to-screen hardening — nothing may exceed the viewport width */
img, video, svg { max-width: 100%; }
.panel, .ef-card, .stat-card, .adm-home-card { max-width: 100%; box-sizing: border-box; }
.dash-grid, .adm-m, main, .page-head { max-width: 100vw; box-sizing: border-box; }
input, select, textarea { max-width: 100%; box-sizing: border-box; }
td, th, .ef-ci-txt, .ef-mi-txt { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .panel { padding: 12px; }
  main { padding-left: 10px; padding-right: 10px; }
}

/* mobile stacking — inline-grid/flex forms must collapse to full-width rows */
@media (max-width: 640px) {
  div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; display: grid !important; }
  form[style*="display:flex"], form[style*="display: flex"] { flex-direction: column !important; align-items: stretch !important; }
  form .field { width: 100% !important; min-width: 0 !important; flex: none !important; }
  form .field input, form .field select { width: 100% !important; box-sizing: border-box; }
  form .btn, form button.btn { width: 100%; }
  .panel h2, .panel b, .panel small { overflow-wrap: anywhere; }
}

/* grid/flex min-content overflow fix — panels must shrink to screen width */
.dash-grid > * { min-width: 0; }
.panel, .ef-card { min-width: 0; }
.panel-head > *, .panel-head h2 { min-width: 0; flex-shrink: 1; }
@media (max-width: 960px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
