:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #0f1115;
  --ink-soft: #3d4450;
  --muted: #8b929e;
  --border: #e6e8ec;
  --border-strong: #d0d4db;
  --accent: #0f1115;
  --success: #0d9f6e;
  --success-bg: #e6f7f1;
  --danger: #d14343;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(15, 17, 21, 0.12);
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; }
body.map-mode { overflow: hidden; background: #ddd; }

#map { position: fixed; inset: 0; z-index: 1; }

/* Top bar */
.map-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top));
  pointer-events: none;
}
.map-topbar > * { pointer-events: auto; }
.brand {
  background: var(--ink); color: #fff; font-weight: 800; font-size: 1.1rem;
  padding: 8px 14px; border-radius: 999px; letter-spacing: -0.03em;
  box-shadow: var(--shadow);
}
.brand span { font-weight: 500; opacity: 0.85; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.btn-top {
  border: none; background: #fff; color: var(--ink); font-weight: 700;
  font-size: 0.85rem; padding: 10px 16px; border-radius: 999px;
  box-shadow: var(--shadow); cursor: pointer;
}
.btn-top.ghost { background: #fff1f2; color: #991b1b; }
.user-chip {
  background: #fff; padding: 6px 12px 6px 6px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; box-shadow: var(--shadow);
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border: 2px solid transparent;
  gap: 8px;
}
.user-chip.role-passenger { border-color: #93c5fd; background: #eff6ff; }
.user-chip.role-driver { border-color: #86efac; background: #f0fdf4; }
.user-chip.role-admin { border-color: #fcd34d; background: #fffbeb; }
.chip-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-width: 0; }
#userChipName { font-weight: 700; font-size: 0.8rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.chip-meta { font-size: 0.65rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.02em; }
.chip-meta.verified { color: #15803d; }
.chip-meta.unverified { color: #9a6700; }
.chip-meta.pending { color: #a16207; }

/* Sheet */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  background: #fff; border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.12);
  padding: 8px 18px 24px; padding-bottom: max(24px, env(safe-area-inset-bottom));
  max-height: 58vh; overflow-y: auto;
}
.sheet-handle {
  width: 40px; height: 4px; background: #d8dbe2; border-radius: 4px;
  margin: 6px auto 14px;
}
.sheet-step { margin-bottom: 8px; }
.sheet-title { font-size: 0.9rem; font-weight: 700; margin: 14px 0 8px; }
.field-label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; color: var(--ink-soft); }
.hint-text { font-size: 0.8rem; color: var(--muted); margin: 10px 0 14px; line-height: 1.45; }

.search-wrap { position: relative; }
#destInput, input, select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border-strong);
  border-radius: 12px; font: inherit; font-size: 0.95rem; background: #fff;
}
#destInput:focus, input:focus, select:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15,17,21,0.08);
}

.suggest-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); z-index: 30; max-height: 220px; overflow-y: auto;
}
.suggest-item {
  display: block; width: 100%; text-align: left; border: none; background: none;
  padding: 12px 14px; font-size: 0.85rem; cursor: pointer; color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: #f5f6f8; }

button.primary, button.success, .btn.primary {
  width: 100%; border: none; border-radius: 12px; padding: 14px 18px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; background: var(--accent); color: #fff;
}
button.primary:disabled { opacity: 0.45; cursor: not-allowed; }
button.success { background: var(--success); color: #fff; margin-top: 10px; }
button.primary.sm, .primary.sm { width: auto; padding: 10px 16px; font-size: 0.85rem; }
.btn-link {
  display: block; width: 100%; margin-top: 10px; border: none; background: none;
  color: var(--muted); font-weight: 600; font-size: 0.85rem; cursor: pointer; padding: 8px;
}

.quote-card {
  background: #f7f8fa; border-radius: 14px; padding: 16px; margin-bottom: 4px;
}
.quote-card .price { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; }
.quote-card .meta { font-size: 0.82rem; color: var(--muted); margin: 6px 0 12px; }
.quote-card .row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 4px 0; color: var(--ink-soft); }
.quote-card .row.total { font-weight: 800; color: var(--ink); border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; }

.searching { text-align: center; padding: 20px 0; }
.pulse {
  width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--success); animation: pulse 1.2s ease infinite;
}
@keyframes pulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.7; }
}

.driver-status-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.stats.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.stat { background: #f7f8fa; border-radius: 12px; padding: 10px; text-align: center; }
.stat .value { font-weight: 800; font-size: 0.95rem; }
.stat .label { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }

.list { display: grid; gap: 8px; }
.list.compact .item { padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.item .row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.item .sub, .item .meta { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.empty { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 16px; }

.badge {
  display: inline-block; border-radius: 999px; padding: 4px 10px;
  font-size: 0.7rem; font-weight: 700; background: #e5e7eb; color: var(--ink-soft);
}
.badge.online { background: var(--success-bg); color: var(--success); }
.badge.offline { background: #f0f1f3; color: var(--muted); }
.badge.status-requested { background: #fff4e0; color: #9a6700; }
.badge.status-accepted { background: #e0f0ff; color: #0060a0; }
.badge.status-completed { background: var(--success-bg); color: var(--success); }
.badge.status-cancelled { background: #fde8e8; color: var(--danger); }

/* Map pins */
.driver-marker { background: none !important; border: none !important; }
.bike-pin {
  width: 36px; height: 36px; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); font-size: 18px;
  border: 2px solid var(--ink);
}
.pin-marker { background: none !important; border: none !important; }
.pin-dot {
  width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.pin-dot.pickup { background: #2563eb; }
.pin-dot.dest { background: #dc2626; }
.pin-marker span {
  display: block; font-size: 10px; font-weight: 700; margin-top: 2px;
  background: #fff; padding: 1px 6px; border-radius: 4px; width: fit-content;
}

/* Modal auth */
.modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(15,17,21,0.45);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.modal-card {
  background: #fff; border-radius: 20px; padding: 24px 20px;
  width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute; right: 14px; top: 12px; border: none; background: #f0f1f3;
  width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
}
.modal-card h2 { font-size: 1.4rem; font-weight: 800; }
.modal-card .sub { color: var(--muted); font-size: 0.85rem; margin-bottom: 16px; }
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab {
  flex: 1; border: none; background: none; padding: 12px; font-weight: 600;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
}
.tab.active { color: var(--ink); border-bottom-color: var(--ink); }
label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
label input, label select { margin-top: 6px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 12px;
  color: var(--muted); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn.google {
  width: 100%; background: #fff; color: var(--ink); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 12px; font-weight: 600; cursor: pointer;
}
.btn.google:hover { background: #f8f9fa; }
.msg { min-height: 20px; margin-top: 10px; font-size: 0.85rem; color: var(--danger); text-align: center; }

.toast {
  position: fixed; right: 16px; bottom: 28px; z-index: 60;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px;
  font-size: 0.88rem; font-weight: 600; opacity: 0; transform: translateY(10px);
  transition: 0.25s; pointer-events: none; max-width: 300px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

.hidden { display: none !important; }
.muted { color: var(--muted); }

@media (min-width: 768px) {
  .sheet {
    left: 16px; right: auto; bottom: 16px; width: 400px;
    border-radius: 20px; max-height: calc(100vh - 100px);
  }
  .modal { align-items: center; }
}


/* Touch & interaction polish */
button, .btn-top, .suggest-item, .btn-link {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 44px;
}
button.primary.ready {
  box-shadow: 0 4px 16px rgba(15, 17, 21, 0.25);
  transform: translateZ(0);
}
button.primary:not(:disabled):active {
  transform: scale(0.98);
}
#destInput {
  font-size: 16px; /* cegah zoom iOS saat focus */
  min-height: 48px;
}
.suggest-item {
  min-height: 48px;
  padding: 14px 16px;
}
.leaflet-marker-draggable {
  cursor: grab;
}
.sheet {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
/* Pastikan sheet tidak menutupi tombol di HP kecil */
@media (max-height: 700px) {
  .sheet { max-height: 52vh; }
}
@media (pointer: coarse) {
  .pin-marker span { font-size: 11px; padding: 2px 8px; }
  .bike-pin { width: 40px; height: 40px; font-size: 20px; }
}

/* Google button icon */
.btn.google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.google-icon { flex-shrink: 0; }

/* Clickable order items */
.item-click {
  width: 100%;
  text-align: left;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.item-click:hover, .item-click:active {
  border-color: var(--border-strong);
  background: #fafbfc;
}

/* Order detail */
.detail-card h2 { margin-bottom: 12px; font-size: 1.15rem; }
.detail-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.detail-grid .k {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.detail-grid > div {
  padding: 8px 10px;
  background: #f7f8fa;
  border-radius: 10px;
  font-size: 0.88rem;
}
.detail-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.btn.outline {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
}
.btn.danger-outline {
  width: 100%;
  border: 1px solid #f5c2c2;
  background: #fff;
  color: var(--danger);
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
}
.mt { margin-top: 12px; }
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 64px;
}


/* Prefs & safety */
.pref-box {
  margin: 10px 0;
  padding: 10px 12px;
  background: #f7f8fa;
  border-radius: 12px;
  display: grid;
  gap: 8px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0;
}
.check-row input { width: auto; margin: 0; }

.charge-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.45;
}
.charge-note { color: #c2410c !important; font-weight: 600; }

.rating-box {
  margin: 12px 0;
  padding: 12px;
  background: #f7f8fa;
  border-radius: 12px;
}
.stars {
  display: flex;
  gap: 6px;
  margin: 8px 0 12px;
}
.stars button {
  border: none;
  background: none;
  font-size: 1.6rem;
  color: #d0d4db;
  cursor: pointer;
  min-height: 40px;
  padding: 0 4px;
}
.stars button.on { color: #f5a524; }

.btn-top.ghost-dark {
  background: #fff;
  color: var(--ink);
}
.verify-info p { margin-top: 6px; font-size: 0.82rem; color: var(--ink-soft); }

.pay-box {
  margin: 12px 0;
  padding: 12px;
  background: #f7f8fa;
  border-radius: 12px;
}
.pay-box .k { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; }
.qris-box {
  margin: 12px 0 14px;
  text-align: center;
}
.qris-frame {
  display: inline-block;
  width: min(100%, 260px);
  max-width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border, #e6e8ec);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 17, 21, 0.06);
}
.qris-box img,
#qrisImg {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  margin: 0 auto;
  background: #fff;
}
.qris-caption {
  margin-top: 8px !important;
  font-size: 0.78rem;
  color: var(--muted, #8b929e);
}
@media (max-width: 400px) {
  .qris-frame { width: min(100%, 220px); padding: 10px; }
}
@media (min-width: 768px) {
  .qris-frame { width: min(100%, 240px); }
}
.tracking-banner {
  position: fixed; top: 58px; left: 50%; transform: translateX(-50%);
  z-index: 16; background: var(--success); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 8px 14px;
  border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap;
  max-width: 90vw; overflow: hidden; text-overflow: ellipsis;
}

.user-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
}
/* Harus menang atas display:inline-flex agar logout benar-benar menyembunyikan chip */
.user-chip.hidden {
  display: none !important;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
  border: 2px solid #d1d5db;
  box-sizing: border-box;
}
.user-avatar.has-photo { color: transparent; }
.user-avatar.verified {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}
.user-avatar.verified::after {
  content: "✓";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
  border: 1.5px solid #fff;
}
.user-avatar.unverified {
  border-color: #d1d5db;
  opacity: 0.95;
}
.user-avatar.role-driver { background: #dcfce7; color: #166534; }
.user-avatar.role-passenger { background: #dbeafe; color: #1e40af; }
.user-avatar.role-admin { background: #fef3c7; color: #92400e; }

/* Role theming on sheets */
body.role-driver .sheet { border-top: 3px solid #22c55e; }
body.role-passenger .sheet { border-top: 3px solid #3b82f6; }
.role-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.role-pill.driver { background: #dcfce7; color: #166534; }
.role-pill.passenger { background: #dbeafe; color: #1e40af; }
.role-pill.admin { background: #fef3c7; color: #92400e; }
.badge.muted { background: #f0f1f3; color: var(--muted); }
.profile-avatar-lg {
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; margin-bottom: 8px;
  background-size: cover; background-position: center;
  border: 3px solid #d1d5db; position: relative;
}
.profile-avatar-lg.verified { border-color: #22c55e; }
.profile-avatar-lg.verified::after {
  content: "✓"; position: absolute; right: -2px; bottom: -2px;
  width: 20px; height: 20px; border-radius: 50%; background: #16a34a;
  color: #fff; font-size: 12px; line-height: 20px; text-align: center;
  border: 2px solid #fff; font-weight: 900;
}
.profile-avatar-lg.role-driver { background: #dcfce7; color: #166534; }
.profile-avatar-lg.role-passenger { background: #dbeafe; color: #1e40af; }

.admin-card { max-width: 520px; max-height: 92vh; }
.admin-periods { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.admin-periods .btn { width: auto; padding: 8px 12px; font-size: 0.8rem; }
.admin-tx { max-height: 220px; overflow-y: auto; }
.brand { cursor: pointer; user-select: none; }

.sheet-role-banner {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 0 4px 10px; margin-bottom: 4px;
}
.sheet-role-banner .sheet-role-hint {
  font-size: 0.72rem; color: var(--muted); font-weight: 500;
}
.sheet-role-banner.passenger { border-bottom: 1px solid #dbeafe; margin-bottom: 10px; padding-bottom: 10px; }
.sheet-role-banner.driver { border-bottom: 1px solid #dcfce7; margin-bottom: 10px; padding-bottom: 10px; }

/* Chip nama: satu kata, expand hover */
#userChipName {
  max-width: 5.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  transition: max-width 0.25s ease;
}
.user-chip:hover #userChipName,
.user-chip:focus #userChipName {
  max-width: 220px;
}
.user-chip:hover {
  max-width: 280px;
  z-index: 30;
}
.v-no {
  color: #b45309;
  cursor: help;
  font-size: 0.85em;
}
.v-ok { color: #15803d; }
.v-pending { color: #a16207; }

/* Driver bike icons */
.bike-pin.verified {
  background: #fff;
  border-color: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}
.bike-pin.unverified {
  background: #e5e7eb;
  border-color: #9ca3af;
  color: #6b7280;
  filter: grayscale(0.4);
  opacity: 0.95;
}

/* Passenger presence dots */
.pax-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.pax-dot.ghost { background: #c4b5fd; } /* ungu pucat */
.pax-dot.app-open { background: #86efac; } /* hijau pucat */
.pax-dot.logged-in { background: #22c55e; } /* hijau */
.pax-dot.ordering { background: #eab308; } /* kuning */
.pax-dot.waiting { background: #ef4444; } /* merah */


/* logout-chip-force — pastikan chip benar-benar hilang saat .hidden */
.user-chip.hidden,
button#userChip.hidden,
#userChip.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: none !important;
  opacity: 0 !important;
}
#logoutBtn.hidden {
  display: none !important;
}
.btn.google .google-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Fare collapse — Untuk Driver */
.fare-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 4px 0 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
}
.fare-toggle-label { flex: 1; text-align: left; }
.fare-toggle-amt { font-weight: 800; }
.fare-toggle-icon {
  width: 22px; height: 22px; border-radius: 6px;
  background: #dcfce7; color: #166534;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800;
}
.fare-driver-detail {
  padding: 4px 0 8px 12px;
  border-left: 3px solid #86efac;
  margin: 0 0 8px 6px;
}
.quote-card .row.indent {
  padding-left: 4px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.bike-pin.self {
  background: #fef9c3;
  border-color: #ca8a04;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.35);
  font-size: 20px;
}
.popup-driver-btn {
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
}
.driver-profile-actions {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.driver-profile-actions label {
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.driver-profile-actions input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
}

/* Multi-service home (Gojek/Grab style) */
.home-greeting {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 12px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
@media (max-width: 420px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
}
.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  font: inherit;
  transition: 0.15s;
}
.service-tile:hover, .service-tile.active {
  border-color: var(--svc, #22c55e);
  background: color-mix(in srgb, var(--svc, #22c55e) 12%, #fff);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.svc-icon { font-size: 1.45rem; line-height: 1; }
.svc-name { font-size: 0.68rem; font-weight: 800; text-align: center; }
.svc-short { font-size: 0.6rem; color: var(--muted); text-align: center; line-height: 1.2; }
.selected-service-bar {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f8fa;
}
.svc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.8rem;
  width: fit-content;
}
.driver-services-box {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.svc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.85rem;
}
.svc-check input { width: 18px; height: 18px; }
.svc-check-icon { font-size: 1.2rem; }
.svc-check small { color: var(--muted); font-weight: 500; }
