/* Bonride — tema merah gelap sesuai referensi desain aplikasi ojek */

:root {
  --deep: #4a0c0f;
  --deep-2: #7a1418;
  --brand: #c1272d;
  --brand-dark: #9b1c1f;
  --brand-soft: #fdeceb;
  --brand-line: #f3cfcd;
  --green: #12813f;
  --green-soft: #e7f6ec;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --blue: #1d4ed8;
  --blue-soft: #e5edff;
  --dark: #1c1c1e;
  --ink: #18181b;
  --muted: #6b6b72;
  --bg: #f4f4f6;
  --line: #e9e9ec;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(24, 24, 27, 0.07);
  --shadow-lg: 0 24px 60px rgba(24, 24, 27, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.page-device {
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, 0.14), transparent 45%),
    radial-gradient(circle at 88% 92%, rgba(0, 0, 0, 0.28), transparent 55%),
    linear-gradient(150deg, #8d1c1f, #6a1013 55%, #4a0c0f);
  background-attachment: fixed;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 10px; letter-spacing: -0.01em; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1240px; }

/* ---------------- topbar ---------------- */
.topbar {
  background: linear-gradient(115deg, #4a0c0f, #8d1c1f 62%, #a3171c);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 8px 26px rgba(74, 12, 15, 0.28);
}
.topbar-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 66px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.16); display: grid; place-items: center; color: #fff;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text em { font-style: normal; color: #ffb4b6; }
.nav { display: flex; gap: 4px; align-items: center; flex: 1 1 auto; overflow-x: auto; }
.nav-link {
  color: rgba(255, 255, 255, 0.84); padding: 8px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; }
.nav-link.is-active { background: rgba(255, 255, 255, 0.18); color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.chip-admin { background: #ffd9a1; color: #4a2c00; }

main { padding: 28px 0 56px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 11px 18px; font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: none; transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 10px 22px rgba(155, 28, 31, 0.26); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(155, 28, 31, 0.34); }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn-outline { background: #fff; color: var(--brand-dark); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); }
.btn-danger { background: #fff; color: var(--brand-dark); border-color: var(--brand-line); }
.btn-danger:hover { background: #fff7f7; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------------- cards & layout ---------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card + .card { margin-top: 20px; }
.section { margin-top: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head p { color: var(--muted); margin: 4px 0 0; max-width: 72ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-tight { gap: 16px; }

/* ---------------- halaman publik (tema merah) ---------------- */
.hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .16), transparent 50%),
    linear-gradient(135deg, #6c1114, #a3171c 60%, #c1272d);
  color: #fff; border-radius: 24px; padding: 44px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
  box-shadow: var(--shadow-lg);
}
.hero h1 { font-size: 34px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: -.01em; }
.hero p { color: rgba(255, 255, 255, .86); font-size: 16px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .24); padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; margin-bottom: 16px; letter-spacing: .04em; text-transform: uppercase;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: 0 12px 26px rgba(0, 0, 0, .22); }
.hero .btn-ghost { background: rgba(255, 255, 255, .12); }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.hero-stat { background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 14px 16px; }
.hero-stat b { display: block; font-size: 22px; }
.hero-stat span { font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.hero-panel { background: rgba(255, 255, 255, .97); border-radius: 18px; padding: 20px; color: var(--ink); align-self: start; }
.hero-panel h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* ---------------- statistik ---------------- */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 27px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13px; }
.stat.is-green { border-left: 4px solid var(--green); }
.stat.is-amber { border-left: 4px solid var(--amber); }
.stat.is-blue { border-left: 4px solid var(--blue); }
.stat.is-deep { border-left: 4px solid var(--brand); }

/* ---------------- bagan struktur ---------------- */
.org { display: grid; justify-items: center; }
.org-top {
  padding: 10px 20px; border: 1.5px solid var(--brand-dark); border-radius: 11px;
  font-weight: 700; font-size: 13.5px; letter-spacing: .06em; background: var(--brand-soft); color: var(--deep);
}
.org-stem { width: 2px; height: 22px; background: var(--brand-dark); }
.org-bar { display: grid; grid-template-columns: 1fr 1fr; width: 100%; position: relative; padding-top: 20px; }
.org-bar::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 2px; background: var(--brand-dark); }
.org-branch { display: grid; justify-items: center; gap: 0; position: relative; }
.org-branch::before { content: ""; position: absolute; top: -22px; left: 50%; width: 2px; height: 22px; background: var(--brand-dark); transform: translateX(-50%); }
.org-node {
  display: inline-block; border: 1.5px solid var(--brand-dark); border-radius: 10px; padding: 8px 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em; background: #fff; color: var(--deep); text-align: center;
}
a.org-node:hover { text-decoration: none; border-color: var(--brand); background: var(--brand-soft); }
.org-count { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.org-link { width: 2px; height: 18px; background: var(--brand-dark); }
.org-link.is-dashed { width: 0; border-left: 2px dashed #c9a2a2; background: none; height: 26px; }
.org-chain { list-style: none; margin: 0; padding: 0; display: grid; justify-items: center; }
.org-chain li { position: relative; }
.org-chain li .org-node { margin: 6px 0; }
.org-chain li::before { content: ""; position: absolute; top: -6px; left: 50%; width: 2px; height: 6px; background: var(--brand-dark); transform: translateX(-50%); }
.org-caption { margin-top: 16px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------------- badge & tag ---------------- */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--green-soft); color: #0a6130; }
.badge-warn { background: var(--amber-soft); color: #8a4108; }
.badge-info { background: var(--blue-soft); color: #1d4ed8; }
.badge-bad { background: var(--brand-soft); color: #9b1c1f; }
.badge-grey { background: #ececef; color: #4b4b52; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-dark); font-size: 11.5px; font-weight: 600; }
.tag-override { background: #f3e8ff; color: #7c3aed; }

/* ---------------- tabel ---------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); padding: 13px 16px; background: #fafafa; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.table td { padding: 13px 16px; border-bottom: 1px solid #f2f2f4; vertical-align: middle; }
table.table tr:last-child td { border-bottom: none; }
table.table tbody tr:hover { background: #fcfcfd; }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------------- formulir ---------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 14px; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(193, 39, 45, .14); }
select:disabled { background: #f7f7f8; color: #9a9aa2; }
.field-error { color: var(--brand-dark); font-size: 12.5px; margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fieldset-title { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); font-weight: 700; margin: 0 0 14px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.checkline input { width: auto; margin-top: 3px; }

.cascade { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.cascade-field.is-disabled .cascade-label { color: #9a9aa2; }
.cascade-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.cascade-note {
  display: none; margin-top: 12px; padding: 12px 14px; border-radius: 11px;
  background: #fffbeb; border: 1px solid #fde9b8; color: #8a5a09; font-size: 13px;
}
.cascade-note.is-visible { display: block; }
.usulan-box { display: none; margin-top: 14px; padding: 16px; border: 1px dashed var(--brand-line); border-radius: 12px; background: #fffafa; }
.usulan-box.is-visible { display: block; }

.filterbar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.filterbar .field { margin: 0; min-width: 170px; flex: 1 1 170px; }
.filterbar .field.grow { flex: 2 1 240px; }

/* ---------------- pesan & kotak info ---------------- */
.flash { padding: 13px 16px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; border: 1px solid transparent; }
.flash-ok { background: var(--green-soft); color: #0a6130; border-color: #c3ead3; }
.flash-err { background: var(--brand-soft); color: #9b1c1f; border-color: var(--brand-line); }
.flash-info { background: var(--blue-soft); color: #1d4ed8; border-color: #cddbfb; }
.hint-box { background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: #7a1418; }
.hint-box.amber { background: #fffbeb; border-color: #fde9b8; color: #8a5a09; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--brand-dark); }
.breadcrumb span.sep { color: #c1c1c8; }

.node-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: border-color .15s ease, transform .1s ease; }
.node-card:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-1px); }
.node-card h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.node-card .node-meta { color: var(--muted); font-size: 12.5px; }
.node-card .node-count { margin-top: 12px; display: flex; align-items: baseline; gap: 6px; }
.node-card .node-count b { font-size: 22px; color: var(--brand-dark); }
.node-count span { font-size: 12.5px; color: var(--muted); }

.bar-row { display: grid; grid-template-columns: 190px 1fr 70px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f2f2f4; }
.bar-row:last-child { border-bottom: none; }
.bar-track { height: 9px; background: #f0f0f3; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #c1272d, #7a1418); border-radius: 999px; }
.bar-row .bar-val { text-align: right; font-weight: 600; font-size: 13.5px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid #eaeaee; margin-left: 5px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2.5px solid var(--brand); }
.timeline li.is-override::before { border-color: #7c3aed; }
.timeline .tl-title { font-weight: 600; font-size: 14px; }
.timeline .tl-meta { font-size: 12.5px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 14px; margin-bottom: 12px;
}

.list-clean { list-style: none; margin: 0; padding: 0; }
.list-clean li { padding: 11px 0; border-bottom: 1px solid #f2f2f4; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.list-clean li:last-child { border-bottom: none; }

details.inline-form { margin-top: 6px; }
details.inline-form summary { cursor: pointer; font-size: 13px; color: var(--brand-dark); font-weight: 600; }
details.inline-form[open] summary { margin-bottom: 8px; }
details.inline-form .inline-body { background: #fcfcfd; border: 1px solid var(--line); border-radius: 11px; padding: 12px; min-width: 190px; max-width: 240px; }

.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.pagination a, .pagination span { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; color: var(--ink); }
.pagination .is-current { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.footer { background: #fff; border-top: 1px solid var(--line); padding: 26px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.footer-note { max-width: 420px; }
.page-device .footer { background: rgba(0, 0, 0, .28); border-top-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .75); }
.page-device .footer strong { color: #fff; }

.login-shell { max-width: 430px; margin: 30px auto; }

/* ================================================================ *
 * Alur perjalanan penumpang: pesan → lacak → struk
 * ================================================================ */

.device-shell { display: grid; justify-items: center; gap: 26px; }
.device-headline { text-align: center; max-width: 760px; color: #fff; }
.device-headline h1 {
  font-size: 34px; text-transform: uppercase; font-weight: 800; letter-spacing: .01em;
  color: #fff; margin: 0 0 8px; line-height: 1.15;
}
.device-headline p { color: rgba(255, 255, 255, .82); margin: 0; }
.device-steps { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.device-steps .dstep {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .8);
}
.device-steps .dstep.is-active { background: #fff; color: var(--brand-dark); border-color: #fff; }

.device {
  width: 100%; max-width: 430px; background: #fff; border-radius: 34px; padding: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .25) inset;
  border: 1px solid rgba(0, 0, 0, .25);
}
.device-notch { width: 108px; height: 6px; border-radius: 999px; background: #e6e6ea; margin: 2px auto 10px; }
.device-screen { background: #fff; border-radius: 26px; overflow: hidden; }
.screen-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 16px 0; font-size: 11px; font-weight: 600; color: #26262b;
}
.screen-head {
  background: linear-gradient(120deg, #6c1114, #b81f24);
  color: #fff; padding: 14px 18px 18px;
}
.screen-head .sh-row { display: flex; align-items: center; gap: 12px; }
.screen-head h2 { font-size: 17px; margin: 0; font-weight: 700; }
.screen-head .sh-back {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .18); color: #fff; font-size: 15px;
}
.screen-head .sh-sub { font-size: 12px; color: rgba(255, 255, 255, .8); margin: 6px 0 0; }
.screen-body { padding: 16px; }
.screen-body.tight { padding: 12px; }
.screen-foot { border-top: 1px solid var(--line); padding: 14px 16px; background: #fff; position: sticky; bottom: 0; }

.sheet { background: #fff; border-radius: 18px; box-shadow: 0 12px 30px rgba(24, 24, 27, .1); padding: 16px; border: 1px solid var(--line); }
.sheet + .sheet { margin-top: 14px; }
.sheet-title { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 0 0 12px; }

.promo {
  background: linear-gradient(120deg, #b81f24, #7a1418); color: #fff; border-radius: 16px;
  padding: 14px 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.promo b { font-size: 15px; display: block; }
.promo span { font-size: 12.5px; color: rgba(255, 255, 255, .82); }
.promo-badge {
  margin-left: auto; background: #fff; color: var(--brand-dark);
  padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 12px; white-space: nowrap;
}


.place-icon {
  width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; flex: none;
}
.place-icon svg { width: 19px; height: 19px; }
.place-name { font-weight: 600; font-size: 14px; }
.place-area { font-size: 12px; color: var(--muted); }
.place-dist { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--brand-dark); white-space: nowrap; }


.ride-option {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 14px; background: #fff; margin-bottom: 10px; cursor: pointer;
}
.ride-option input { position: absolute; opacity: 0; pointer-events: none; }
.ride-option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(193, 39, 45, .1); }
.ride-option .ro-name { font-weight: 700; font-size: 14px; }
.ride-option .ro-ket { font-size: 12px; color: var(--muted); }
.ride-option .ro-price { margin-left: auto; text-align: right; font-weight: 700; color: var(--brand-dark); font-size: 14px; }
.ride-option .ro-price span { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }

/* peta */
.map { position: relative; height: 250px; border-radius: 16px; overflow: hidden; background: #eef0f3; border: 1px solid var(--line); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-marker {
  position: absolute; transform: translate(-50%, -50%); z-index: 3;
  width: 34px; height: 34px; border-radius: 11px; background: var(--brand); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 18px rgba(155, 28, 31, .4);
  border: 2px solid #fff; transition: left .8s ease, top .8s ease;
}
.map-marker svg { position: static; width: 18px; height: 18px; }
.map-marker::after {
  content: ""; position: absolute; inset: -8px; border-radius: 16px;
  border: 2px solid rgba(193, 39, 45, .45); animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.7); opacity: .9; }
  100% { transform: scale(1.5); opacity: 0; }
}
.map-pin { position: absolute; transform: translate(-50%, -100%); z-index: 2; }
.map-badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 4; background: rgba(255, 255, 255, .95);
  border-radius: 12px; padding: 8px 12px; font-size: 12px; font-weight: 600; box-shadow: var(--shadow);
}
.map-live {
  position: absolute; right: 12px; top: 12px; z-index: 4; background: rgba(28, 28, 30, .88); color: #fff;
  border-radius: 999px; padding: 6px 12px; font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 6px;
}
.map-live .pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: blink 1.2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* kartu driver */
.driver-card { display: flex; align-items: center; gap: 13px; }
.avatar-foto { padding: 0; overflow: hidden; background: #f0f0f3; }
.avatar-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-besar { width: 96px; height: 96px; font-size: 26px; border-radius: 16px; }
.foto-profil-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
input[type="file"] {
  width: 100%; padding: 10px 12px; border: 1px dashed var(--brand-line); border-radius: 12px;
  background: #fffafa; font: inherit; font-size: 13.5px;
}

.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #b81f24, #6c1114); color: #fff; font-weight: 700; font-size: 15px;
}

/* --- Edit Profil pengguna kantor pusat (/profil) --- */
.profil-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 20px; }
.profil-grid > .card { margin: 0; padding: 22px; }
.card-lebar { grid-column: 1 / -1; }
.profil-aksi {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 20px; padding: 18px 22px; border-radius: 16px;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--brand-line);
}
.cek { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 4px; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cek input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: none; accent-color: #b81f24; }
.wilayah-manual { display: none; }
.wilayah-cascade { margin-top: 6px; }
/* Mode isi manual: JS menandai kelas (lihat assets/app.js); :has() jadi cadangan
   bila skrip belum jalan. Struktur checkbox di dalam <label> membuat pemilih
   “:checked ~ .wilayah-manual” tidak berlaku, jadi jangan dikembalikan ke cara itu. */
.wilayah-manual.is-tampil { display: block; }
.wilayah-cascade.is-tersembunyi { display: none; }
.card:has(#alamat-manual:checked) .wilayah-manual { display: block; }
.card:has(#alamat-manual:checked) .wilayah-cascade { display: none; }

/* --- Lupa Password (reset sandi) --- */
.lupa-sandi-bawah { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e6ded6; }
.sandi-sementara {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 14px; background: #f2fbf5; border: 1px solid #c3ead3;
}
.sandi-sementara code {
  font: 700 24px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em;
  color: #0a6130; background: #fff; padding: 8px 14px; border-radius: 10px; border: 1px solid #cfe9d9;
}

/* --- Verifikasi berjenjang perubahan profil (/agen/verifikasi-profil) --- */
.alur-langkah.is-ditolak { background: #fdeaea; border-color: #f6c9c9; color: #9b1c1f; }
.alur-langkah.is-ditolak::before { content: "✕"; color: #c1272d; }
.banding-tabel td { vertical-align: top; }
.banding-tabel tr.is-berubah td { background: #fffdf3; }
.banding-tabel tr.is-berubah td:nth-child(3) { border-left: 2px solid #f0c14b; }
.driver-name { font-weight: 700; font-size: 14.5px; }
.driver-meta { font-size: 12px; color: var(--muted); }
.plate {
  margin-left: auto; background: #1c1c1e; color: #fff; border-radius: 9px; padding: 5px 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
.price { font-size: 20px; font-weight: 800; color: var(--ink); }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); display: block; }

.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 6px; }
.ps-item { text-align: center; font-size: 10.5px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.ps-dot { height: 5px; border-radius: 999px; background: #ececef; margin-bottom: 7px; }
.ps-item.is-done .ps-dot, .ps-item.is-active .ps-dot { background: linear-gradient(90deg, #c1272d, #7a1418); }
.ps-item.is-active { color: var(--brand-dark); }
.progress-bar { height: 8px; border-radius: 999px; background: #f0f0f3; overflow: hidden; margin: 14px 0 6px; }
.progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, #c1272d, #7a1418); transition: width .8s ease; }

.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 30px; line-height: 1; color: #dedee4; cursor: pointer; transition: color .12s ease; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #f5a524; }
.stars-static { color: #f5a524; font-size: 13px; letter-spacing: 1px; }

/* struk */
.receipt {
  background: linear-gradient(160deg, #1c1c1e, #2a2a2e); color: #fff; border-radius: 18px;
  padding: 20px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.receipt .r-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .06em; font-size: 14px; }
.receipt .r-brand em { font-style: normal; color: #ff8b8e; }
.receipt .r-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.receipt .r-car { color: rgba(255, 255, 255, .22); }
.receipt h3 { color: #fff; font-size: 16px; margin: 14px 0 4px; }
.receipt .r-sub { color: rgba(255, 255, 255, .6); font-size: 12.5px; margin: 0; }
.receipt hr { border: none; border-top: 1px dashed rgba(255, 255, 255, .18); margin: 16px 0; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 5px 0; color: rgba(255, 255, 255, .82); }
.receipt .r-row b { color: #fff; font-weight: 600; }
.receipt .r-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.receipt .r-total span { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.receipt .r-total b { font-size: 24px; }
.receipt .r-stars { display: flex; justify-content: center; gap: 8px; margin: 16px 0 4px; }
.receipt .r-star { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-size: 13px; }
.receipt .r-star.is-on { background: #f5a524; color: #3a2500; }
.receipt-light { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.receipt-light .r-row { color: var(--muted); }
.receipt-light .r-row b { color: var(--ink); }
.receipt-light .r-total b { color: var(--brand-dark); }
.receipt-light hr { border-top-color: var(--line); }

.qr { display: grid; place-items: center; gap: 6px; }
.qr-box { width: 84px; height: 84px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.qr-box svg { width: 68px; height: 68px; }

/* ---------------- responsif ---------------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 30px 24px; }
  .hero h1 { font-size: 27px; }
  .org-bar { grid-template-columns: 1fr; gap: 22px; }
  .org-bar::before, .org-bar::after { display: none; }
  .org-branch::before { display: none; }
  .bar-row { grid-template-columns: 120px 1fr 60px; gap: 10px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  h1 { font-size: 25px; }
  .topbar-inner { gap: 8px; }
  .nav { order: 3; flex: 1 1 100%; flex-wrap: wrap; overflow: visible; row-gap: 2px; }
  .nav-link { padding: 7px 10px; font-size: 13.5px; }
  .topbar-right { margin-left: auto; }
  .device-headline h1 { font-size: 24px; }
  }

@media (max-width: 520px) {
  main { padding: 18px 0 40px; }
  .device { max-width: none; border-radius: 0; padding: 0; border: none; box-shadow: none; background: transparent; }
  .device-notch { display: none; }
  .device-screen { border-radius: 0; }
  .device-shell { gap: 18px; }
  .device-headline { padding: 0 8px; }
}

/* ================================================================ *
 * Jaringan agen berjenjang
 * ================================================================ */

.chip-agen { background: #ffe08a; color: #4a2c00; }

.agen-tree { display: grid; gap: 10px; }
.agen-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px 14px calc(16px + var(--depth, 0) * 26px);
  box-shadow: var(--shadow); position: relative;
}
.agen-row::before {
  content: ""; position: absolute; left: calc(16px + var(--depth, 0) * 26px - 13px);
  top: 0; bottom: 0; width: 2px; background: #f0e2e2; opacity: 0;
}
.agen-row[style*="--depth:1"], .agen-row[style*="--depth:2"], .agen-row[style*="--depth:3"] {
  border-left: 3px solid var(--brand-line);
}
.agen-branch { color: var(--brand-line); font-size: 15px; flex: none; width: 14px; }
.agen-main { flex: 1 1 auto; min-width: 0; }
.agen-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agen-actions { flex: 0 1 auto; min-width: 0; }
.agen-actions .table-actions { justify-content: flex-end; flex-wrap: wrap; }
.agen-actions details.inline-form .inline-body { max-width: min(260px, 80vw); }

@media (max-width: 860px) {
  .agen-row { flex-wrap: wrap; }
  .agen-actions { width: 100%; }
  .agen-actions .table-actions { justify-content: flex-start; }
}

/* ================================================================ *
 * Mitra UMKM
 * ================================================================ */

.umkm-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.umkm-card {
  display: flex; gap: 14px; align-items: flex-start; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); transition: border-color .15s ease, transform .1s ease;
}
.umkm-card:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-1px); }
.umkm-icon {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark);
}
.umkm-icon svg { width: 21px; height: 21px; }
.umkm-body { display: grid; gap: 2px; min-width: 0; }
.umkm-nama { font-weight: 700; font-size: 15px; color: var(--ink); }
.umkm-kat { font-size: 12px; font-weight: 600; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .05em; }
.umkm-produk { font-size: 13px; color: var(--ink); }
.umkm-lokasi { font-size: 12px; color: var(--muted); }
.umkm-kode { position: absolute; right: 16px; bottom: 14px; font-size: 11px; color: #b6b6bd; }

@media (max-width: 520px) {
  .umkm-grid { grid-template-columns: 1fr; }
}

/* ================================================================
 * Peta (pemilihan tujuan & pelacakan)
 * ================================================================ */

.peta-pilih, .peta-lacak { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #eef0f3; }

.peta-kanvas { height: 280px; width: 100%; background: #eef0f3; z-index: 0; }
.peta-lacak .peta-kanvas { height: 240px; }
.peta-kanvas.is-gagal { display: none; }

.peta-cari {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 500;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .97); border-radius: 12px; padding: 8px 10px;
  box-shadow: 0 8px 22px rgba(24, 24, 27, .16);
}
.peta-cari-ikon { font-size: 14px; opacity: .6; }
.peta-cari input {
  border: none; padding: 4px 2px; font-size: 13.5px; background: transparent; width: 100%;
}
.peta-cari input:focus { outline: none; box-shadow: none; }
.peta-tombol-gps {
  flex: none; border: none; background: var(--brand-soft); color: var(--brand-dark);
  width: 32px; height: 32px; border-radius: 50%; font-size: 15px; cursor: pointer; line-height: 1;
}
.peta-tombol-gps:hover { background: var(--brand-line); }

.peta-hasil {
  position: absolute; top: 58px; left: 10px; right: 10px; z-index: 500;
  background: #fff; border-radius: 12px; box-shadow: 0 12px 28px rgba(24, 24, 27, .2);
  max-height: 190px; overflow-y: auto;
}
.peta-hasil-item {
  display: block; width: 100%; text-align: left; border: none; border-bottom: 1px solid #f2f2f4;
  background: none; padding: 10px 12px; cursor: pointer; font: inherit;
}
.peta-hasil-item:last-child { border-bottom: none; }
.peta-hasil-item:hover { background: #fff7f7; }
.peta-hasil-nama { display: block; font-size: 13.5px; font-weight: 600; }
.peta-hasil-alamat { display: block; font-size: 11.5px; color: var(--muted); }
.peta-hasil-kosong { padding: 12px; font-size: 12.5px; color: var(--muted); }

.peta-petunjuk {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 400;
  background: rgba(28, 28, 30, .82); color: #fff; border-radius: 10px;
  padding: 7px 11px; font-size: 11px;
}
.peta-fallback { padding: 14px 16px; background: #fffbeb; border-top: 1px solid #fde9b8; }

.pin {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 12px; font-weight: 700; color: #fff; border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}
.pin-asal { background: #2563eb; }
.pin-tujuan { background: var(--brand); }
.pin-driver {
  width: 30px; height: 30px; background: #1c1c1e; border-radius: 10px; font-size: 15px;
}

.peta-pilih + .sheet, .peta-lacak + .sheet, .peta-pilih + .ringkas-peta { margin-top: 14px; }

.titik-tujuan { display: flex; gap: 12px; align-items: center; }
.titik-ikon {
  width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark);
}
.titik-ikon svg { width: 19px; height: 19px; }
.titik-nama { display: block; font-weight: 600; font-size: 14px; }
.titik-alamat { display: block; font-size: 12px; color: var(--muted); }
.titik-jarak {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid #f2f2f4; font-size: 12.5px;
}
.titik-jarak span { color: var(--muted); }
.titik-jarak strong { font-size: 12.5px; text-align: right; }

.panduan-key { counter-reset: langkahkey; display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.panduan-key li { position: relative; padding-left: 34px; font-size: 13.5px; }
.panduan-key li::before {
  counter-increment: langkahkey; content: counter(langkahkey);
  position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.kode-inline {
  display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: #f7f7f9;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 12px; color: var(--ink);
  overflow-x: auto; white-space: nowrap;
}

@media (max-width: 520px) {
  .peta-kanvas { height: 240px; }
  .peta-lacak .peta-kanvas { height: 210px; }
}

/* ================================================================
 * Metode pembayaran (Midtrans / Tunai)
 * ================================================================ */

.metode-bayar { display: grid; gap: 10px; }

.metode-opsi {
  display: flex; align-items: flex-start; gap: 13px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; background: #fff;
}
.metode-opsi input { position: absolute; opacity: 0; pointer-events: none; }
.metode-opsi:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(193, 39, 45, .1); }
.mo-nama { display: block; font-weight: 700; font-size: 14px; }
.mo-ket { display: block; font-size: 12px; color: var(--muted); }
.mo-ikon { margin-left: auto; font-size: 20px; line-height: 1; }

/* ================================================================
 * Alur Login Praktis (satu formulir untuk semua peran)
 * ================================================================ */

.login-card { max-width: 460px; margin: 0 auto; }
.login-form { margin-top: 18px; }
.login-form .field label { font-size: 13.5px; }
.login-form input { padding: 12px 13px; }
/* Spesifisitas harus lebih tinggi dari aturan input[type="password"] bawaan */
input[type="password"].sandi-terang { background: #fdfbe4; }
.login-form .btn-login {
  margin-top: 6px; padding: 13px 18px; font-weight: 700; letter-spacing: .06em;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: 8px; box-shadow: 0 10px 22px rgba(155, 28, 31, .26);
}
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-img { height: 56px; width: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.login-bantuan { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* --- Dua tab cara masuk: Nomor HP (driver & pelanggan) vs Kode Akses --- */
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 4px; }
.login-tab {
  display: block; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; text-align: center; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.login-tab strong { display: block; font-size: 14px; }
.login-tab span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.login-tab:hover { border-color: var(--brand); }
.login-tab.is-aktif {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: 0 8px 18px rgba(155, 28, 31, .12); color: var(--brand-dark);
}
.login-tab.is-aktif span { color: var(--brand-dark); }

/* --- Langkah verifikasi kode OTP --- */
.otp-simulasi {
  margin: 16px 0 4px; padding: 14px; border-radius: 12px;
  border: 1px dashed #d9a021; background: #fff8e6;
}
.otp-simulasi-judul { display: flex; gap: 10px; align-items: flex-start; }
.otp-kode {
  margin-top: 10px; font-size: 30px; font-weight: 700; letter-spacing: .22em;
  text-align: center; color: #7a4a00;
}
.otp-simulasi-badge {
  display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px;
  background: #fff1cc; color: #7a4a00; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
}
.otp-ulang { margin-top: 10px; }

@media (max-width: 520px) {
  .login-tabs { grid-template-columns: 1fr; }
  .otp-kode { font-size: 26px; }
}

.daftar-peran { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.daftar-peran li { display: flex; gap: 12px; align-items: flex-start; }
.kode-akses {
  flex: none; min-width: 118px; text-align: center; padding: 4px 8px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-dark); font-size: 12.5px; font-weight: 700;
}

@media (max-width: 520px) {
  .daftar-peran li { flex-direction: column; gap: 4px; }
  .kode-akses { min-width: 0; }
  .captcha-img { height: 48px; }
}

/* ================================================================
 * Alur verifikasi foto (berjenjang) & antrian verifikasi
 * ================================================================ */

.alur-verifikasi { display: grid; gap: 6px; margin-top: 12px; }
.alur-langkah {
  position: relative; padding: 7px 12px 7px 34px; border-radius: 10px;
  background: #f7f7f9; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
}
.alur-langkah::before {
  content: "○"; position: absolute; left: 11px; top: 6px; font-size: 13px;
}
.alur-langkah.is-done { background: var(--green-soft); border-color: #c3ead3; color: #0a6130; }
.alur-langkah.is-done::before { content: "✓"; color: var(--green); }
.alur-langkah.is-aktif { background: var(--amber-soft); border-color: #fde9b8; color: #8a5a09; font-weight: 600; }
.alur-langkah.is-aktif::before { content: "◍"; color: var(--amber); }

.foto-antrian { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.foto-pratinjau {
  width: 132px; height: 132px; flex: none; border-radius: 14px; overflow: hidden;
  border: 2px solid var(--line); background: #f0f0f3;
}
.foto-pratinjau img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-antrian-info { flex: 1 1 260px; min-width: 0; }
.foto-aksi { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 10px; }

/* ================================================================
 * Alur kode akses (halaman Kode Akses)
 * ================================================================ */

.alur-akses { display: grid; gap: 10px; }
.alur-baris {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow);
}
.alur-langkah-nomor {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 13px;
}
.alur-jenis {
  flex: none; min-width: 128px; text-align: center; padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.alur-jenis.alur-pusat { background: #ede9fe; color: #5b21b6; }
.alur-jenis.alur-agen { background: var(--brand-soft); color: var(--brand-dark); }
.alur-jenis.alur-driver { background: var(--green-soft); color: #0a6130; }
.alur-jenis.alur-umkm { background: var(--blue-soft); color: #1d4ed8; }
.alur-utama { flex: 1 1 220px; min-width: 0; }
.alur-kode { flex: 0 0 auto; text-align: right; display: grid; gap: 2px; }

@media (max-width: 640px) {
  .alur-jenis { min-width: 0; }
  .alur-kode { text-align: left; }
}

/* ================================================================
 * Pengguna kantor pusat & chip izin jabatan
 * ================================================================ */

.izin-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.izin-chip {
  display: inline-block; padding: 2px 8px; border-radius: 7px;
  background: #f1f0ff; color: #4c1d95; font-size: 11px; font-weight: 600;
}

/* --- Layanan pesanan baru: ukuran, item, poin --- */
.ro-kategori {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand-dark); font-size: 10.5px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase;
}
.label-blok { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.item-baris {
  /* minmax(0,1fr) + min-width:0 wajib: tanpa ini input teks punya lebar minimum bawaan
     dan membuat baris item meluber keluar layar di ponsel. */
  display: grid; grid-template-columns: minmax(0, 1fr) 64px 110px 36px; gap: 8px; align-items: center;
  margin-bottom: 8px;
}
.item-baris input { margin: 0; min-width: 0; width: 100%; }
.item-baris input[data-item-jumlah] { text-align: center; }
.item-baris button { padding: 8px 0; }
.daftar-item-pesanan {
  margin-top: 10px; padding: 12px 14px; border: 1px solid #ececf1; border-radius: 12px; background: #fbfbfd;
}
.daftar-item-pesanan .list-clean li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; overflow-wrap: anywhere; }
.total-item { display: flex; justify-content: space-between; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e2e2ea; font-weight: 600; }
.rincian-total { margin: 0 0 10px; display: grid; gap: 4px; }
.rincian-total > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.rincian-total dd { margin: 0; font-weight: 600; color: var(--ink); }
.point-box {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--brand-line);
}
.text-ok { color: #0a6130; }
.text-bad { color: #9b1c1f; }
@media (max-width: 520px) {
  .item-baris { grid-template-columns: minmax(0, 1fr) 52px 86px 30px; gap: 6px; }
}

/* --- BonView (feed konten) --- */
.bv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.bv-kartu {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 16px;
  background: #fff; border: 1px solid #ececf1; box-shadow: 0 8px 24px rgba(24, 20, 40, .05);
}
.bv-kartu.is-turun { opacity: .82; border-color: #f6c9c9; }
.bv-media { position: relative; display: block; aspect-ratio: 16 / 10; background: #f3f3f7; overflow: hidden; }
.bv-media img, .bv-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bv-lencana {
  position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 8px;
  background: rgba(17, 12, 25, .72); color: #fff; font-size: 11px; font-weight: 700;
}
.bv-lencana-turun { left: auto; right: 10px; background: #c1272d; }
.bv-isi { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bv-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.bv-pemilik { font-weight: 700; color: var(--ink); }
.bv-isi h3 { margin: 2px 0 0; font-size: 16px; line-height: 1.35; }
.bv-isi h3 a { color: var(--ink); text-decoration: none; }
.bv-isi h3 a:hover { text-decoration: underline; }
.bv-deskripsi { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bv-kaki { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.bv-poin .tag { font-weight: 700; }
.bv-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; margin-top: 16px; align-items: start; }
.bv-detail-media { border-radius: 18px; overflow: hidden; background: #0d0b14; }
.bv-detail-media img, .bv-detail-media video { width: 100%; height: auto; display: block; max-height: 68vh; object-fit: contain; }
.bv-detail-info h1 { margin: 6px 0 4px; font-size: 24px; }

/* Kartu iklan kampanye (tanpa media unggahan — hanya URL iklan) */
.bv-media-iklan {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px 18px;
  background: linear-gradient(135deg, #4a0c0f, #9b1c1f 60%, #c1272d);
  color: #fff; text-decoration: none; aspect-ratio: 16 / 9;
}
.bv-media-iklan .bv-lencana { position: static; align-self: flex-start; background: rgba(0, 0, 0, .35); }
.bv-host { font-size: 21px; font-weight: 800; letter-spacing: .2px; word-break: break-word; }
.bv-detail-iklan { background: #fbf7f7; padding: 0; }
.bv-iklan-kotak {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: linear-gradient(135deg, #4a0c0f, #9b1c1f 60%, #c1272d); color: #fff; border-radius: 18px;
}
.bv-iklan-kotak .bv-lencana { position: static; align-self: flex-start; background: rgba(0, 0, 0, .35); }
.bv-iklan-host { font-size: 26px; font-weight: 800; word-break: break-word; }
.bv-iklan-url { font-size: 12.5px; opacity: .92; word-break: break-all; }
.bv-iklan-kotak .btn { margin-top: 6px; }
.bv-iklan-kotak .small.muted { color: rgba(255, 255, 255, .85); }
@media (max-width: 760px) {
  .bv-detail { grid-template-columns: 1fr; }
  .bv-grid { grid-template-columns: 1fr; }
}

/* ================================================================ *
 * Beranda Pesan Ojek — hero + kartu pilihan layanan
 * (mengikuti referensi: wordmark BonRide, judul dua warna, kartu
 * gradien merah/biru dengan ikon besar, nama layanan, dan panah)
 * ================================================================ */

.hero-logo {
  display: inline-flex; align-items: baseline; gap: 2px; margin: 0 auto 10px;
  font-size: 44px; font-weight: 900; font-style: italic; letter-spacing: -0.02em;
  line-height: 1; text-decoration: none; position: relative;
}
.hero-logo:hover { text-decoration: none; }
.hero-logo .hl-bon { color: #ff5a60; text-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.hero-logo .hl-ride { color: #5b9dff; text-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.hero-logo .hl-petik {
  position: absolute; left: 8%; right: 8%; bottom: -8px; height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
}
.device-headline h1 { text-transform: none; letter-spacing: -0.01em; }
.device-headline h1 .hl-satu { color: #ff8f93; }

.layanan-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin-top: 4px;
}
.layanan-kartu {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 14px 13px 13px; border-radius: 18px; color: #fff; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .35); overflow: hidden; min-height: 132px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.layanan-kartu:hover { text-decoration: none; transform: translateY(-2px); }
.layanan-kartu input { position: absolute; opacity: 0; pointer-events: none; }
.layanan-kartu::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 78% 12%, rgba(255, 255, 255, .34), transparent 52%);
}
.layanan-kartu.is-merah {
  background: linear-gradient(158deg, #ff6a6f, #e5303a 48%, #b21f2a);
  box-shadow: 0 12px 24px rgba(180, 30, 40, .3);
}
.layanan-kartu.is-biru {
  background: linear-gradient(158deg, #5a95ff, #1c6ce8 48%, #0b4cc4);
  box-shadow: 0 12px 24px rgba(20, 70, 190, .3);
}
.layanan-kartu:has(input:checked) {
  box-shadow: 0 0 0 3px #fff, 0 14px 26px rgba(0, 0, 0, .3);
  transform: translateY(-2px);
}
.layanan-kartu .lk-ikon { position: relative; color: #fff; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .28)); }
.layanan-kartu .lk-ikon svg { width: 38px; height: 38px; stroke-width: 1.6; }
.layanan-kartu .lk-teks { position: relative; display: flex; flex-direction: column; gap: 2px; }
.layanan-kartu .ro-name { font-weight: 800; font-size: 13.5px; line-height: 1.25; color: #fff; }
.layanan-kartu .ro-ket { font-size: 10.5px; line-height: 1.35; color: rgba(255, 255, 255, .82); }
.layanan-kartu .ro-price { font-weight: 800; font-size: 12.5px; color: #fff; margin-top: 2px; }
.layanan-kartu .ro-price span { display: block; font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.layanan-kartu .lk-harga { font-weight: 700; font-size: 11.5px; color: rgba(255, 255, 255, .92); }
.layanan-kartu .lk-panah {
  position: absolute; right: 12px; bottom: 11px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: rgba(255, 255, 255, .22); border: 1.5px solid rgba(255, 255, 255, .7); color: #fff;
}
.layanan-kartu .lk-lencana {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: #ffd7d3; color: #9b1c1f; font-size: 9.5px; font-weight: 800;
  letter-spacing: .08em; padding: 3px 8px; border-radius: 999px;
}
.layanan-kartu.is-baru .lk-ikon svg { width: 40px; height: 40px; }

/* ================================================================ *
 * BonView — order kampanye iklan konten & pembayaran Virtual Account
 * ================================================================ */

.bvo-hero { max-width: 780px; margin: 8px 0 22px; }
.bvo-hero h1 { font-size: 28px; margin-bottom: 8px; }
.bvo-hero .table-actions { margin-top: 12px; }

.bvo-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.bvo-grid > .card { margin: 0; }
.bvo-form .field:last-of-type { margin-bottom: 0; }
.bvo-ringkas { position: sticky; top: 88px; }

.bvo-paket-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 10px; margin-top: 6px; }
.bvo-paket {
  position: relative; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 12px 10px;
  background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.bvo-paket:hover { border-color: var(--brand-line); transform: translateY(-1px); }
.bvo-paket input { position: absolute; opacity: 0; pointer-events: none; }
.bvo-paket:has(input:checked) {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(193, 39, 45, .12);
}
.bvo-paket-urut {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: #f1f1f4; color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 4px;
}
.bvo-paket:has(input:checked) .bvo-paket-urut { background: var(--brand); color: #fff; }
.bvo-paket-harga { font-weight: 800; font-size: 16px; color: var(--ink); }
.bvo-paket-ket { font-size: 12px; color: var(--muted); }

.bvo-rincian li { align-items: flex-start; }
.bvo-rincian li strong { text-align: right; font-size: 13.5px; }
.bvo-rincian .bvo-url { max-width: 62%; }
.bvo-url a { word-break: break-all; font-size: 12.5px; }

.bvo-total {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 16px 0 14px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(120deg, #8d1c1f, #b81f24); color: #fff;
  box-shadow: 0 12px 26px rgba(155, 28, 31, .28);
}
.bvo-total span { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.bvo-total b { font-size: 24px; font-weight: 800; white-space: nowrap; }

.bvo-va {
  background: linear-gradient(140deg, #2a1215, #4a0c0f 60%, #7a1418);
  border-radius: 16px; padding: 18px 18px 16px; color: #fff; margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, .14);
}
.bvo-va-bank { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.bvo-va-nomor {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 26px; font-weight: 700; letter-spacing: .06em; margin: 8px 0 10px;
  word-break: break-all; line-height: 1.25;
}
.bvo-va .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .1); }
.bvo-va .small { color: rgba(255, 255, 255, .8); }

@media (max-width: 860px) {
  .bvo-grid { grid-template-columns: 1fr; }
  .bvo-ringkas { position: static; }
  .bvo-va-nomor { font-size: 22px; }
}
@media (max-width: 520px) {
  .hero-logo { font-size: 34px; }
  .layanan-kartu { min-height: 124px; padding: 12px 11px 12px; }
  .layanan-kartu .lk-ikon svg { width: 32px; height: 32px; }
  .layanan-kartu .ro-name { font-size: 12.5px; }
  .layanan-kartu .ro-ket { display: none; }
  .bvo-hero h1 { font-size: 22px; }
  .bvo-total b { font-size: 20px; }
}

/* ================================================================ *
 * Alur pesanan dua halaman (beranda → form order → konfirmasi)
 * + dompet BonRide Saldo — konsep GLASSMORPHISM
 * Merah & biru BonRide, latar blur/transparan, kartu bergaris tipis bercahaya.
 * ================================================================ */

body.page-glass {
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 92, 100, .38), transparent 48%),
    radial-gradient(circle at 88% 14%, rgba(58, 122, 255, .34), transparent 46%),
    radial-gradient(circle at 70% 92%, rgba(255, 255, 255, .16), transparent 52%),
    linear-gradient(155deg, #7d1418 0%, #5a0f13 42%, #1b1f4b 100%);
  background-attachment: fixed;
}

.device-screen .glass-panel,
.glass-panel {
  position: relative;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .1));
  border: 1px solid rgba(255, 255, 255, .34);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 18px 40px rgba(12, 6, 30, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
  color: #fff;
  margin-bottom: 14px;
}
.glass-panel::after {
  /* Garis tipis bercahaya di tepi kartu */
  content: "";
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 0 26px rgba(255, 128, 132, .28), 0 0 34px rgba(90, 140, 255, .22);
}
.glass-panel .sheet-title { color: rgba(255, 255, 255, .82); }
.glass-panel h1, .glass-panel h2, .glass-panel h3 { color: #fff; }
.glass-panel .muted, .glass-panel .small.muted, .glass-panel .hint { color: rgba(255, 255, 255, .78); }
.glass-panel a { color: #ffd9db; text-decoration: underline; }
.glass-panel .field label { color: rgba(255, 255, 255, .9); }
.glass-panel input[type="text"],
.glass-panel input[type="number"],
.glass-panel input[type="tel"],
.glass-panel input[type="email"],
.glass-panel input[type="datetime-local"],
.glass-panel input:not([type]),
.glass-panel select,
.glass-panel textarea {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.glass-panel input::placeholder, .glass-panel textarea::placeholder { color: rgba(255, 255, 255, .62); }
.glass-panel select option { color: #1f1b3a; }
.glass-panel .hint { font-size: 12px; }

/* Kartu layanan di halaman beranda & form (klik = tautan / radio) */
.layanan-kartu.glass { color: #fff; }
.layanan-grid-form .layanan-kartu { min-height: 118px; }

.glass-langkah-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.glass-langkah {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 13px; border-radius: 14px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .26);
}
.glass-langkah b { font-size: 13px; }
.glass-langkah span { font-size: 12px; color: rgba(255, 255, 255, .8); }

.glass-aksi { display: grid; gap: 10px; }
.glass-aksi-baris { display: flex; gap: 10px; flex-wrap: wrap; }
.glass-aksi-baris .btn, .glass-aksi .btn { flex: 1 1 auto; }
.glass-foot { display: grid; gap: 10px; }
.glass-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.glass-total .price { color: #fff; }

.glass-tombol-peta { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.glass-tombol-peta .btn-outline {
  background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); color: #fff;
}
.glass-tombol-peta .btn-outline:hover { background: rgba(255, 255, 255, .26); }

.glass-peta { border: 1px solid rgba(255, 255, 255, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.glass-peta .peta-cari { background: rgba(255, 255, 255, .92); }

/* Panel metode pembayaran / waktu (glass) */
.metode-opsi.glass {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.metode-opsi.glass .mo-nama { color: #fff; }
.metode-opsi.glass .mo-ket { color: rgba(255, 255, 255, .78); }
.metode-opsi.glass:has(input:checked) {
  border-color: #fff;
  background: rgba(255, 255, 255, .22);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .5), 0 0 22px rgba(255, 140, 144, .45);
}

.glass-panel .titik-jarak {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .26);
  color: #fff;
}
.glass-panel .titik-jarak span { color: rgba(255, 255, 255, .74); }
.glass-panel .titik-jarak strong { color: #fff; }
.glass-panel .rincian-total div { border-color: rgba(255, 255, 255, .2); }
.glass-panel .rincian-total dt { color: rgba(255, 255, 255, .74); }
.glass-panel .rincian-total dd { color: #fff; }
.glass-panel .point-box { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.glass-panel .item-baris input { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.glass-panel .btn-outline { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); color: #fff; }

/* Ringkasan konfirmasi */
.glass-ringkas { display: grid; gap: 6px; }
.glass-ringkas-atas { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.glass-ringkas .eyebrow { color: rgba(255, 255, 255, .78); }
.glass-ringkas .price { font-size: 26px; font-weight: 800; color: #fff; }
.konf-baris {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .22);
  font-size: 13px;
}
.konf-baris:last-child { border-bottom: 0; }
.konf-baris > span { color: rgba(255, 255, 255, .76); flex: 0 0 42%; }
.konf-baris > strong { text-align: right; color: #fff; font-weight: 700; }
.konf-baris .small.muted { color: rgba(255, 255, 255, .66) !important; }
.konf-total {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding: 11px 13px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(255, 106, 111, .34), rgba(88, 130, 255, .34));
  border: 1px solid rgba(255, 255, 255, .4);
  font-weight: 800; color: #fff;
}

/* Flash & tombol di dalam layar glass */
.page-glass .device-screen .flash {
  background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .36);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

/* Responsif: HP, tablet, laptop, desktop */
@media (min-width: 720px) {
  .glass-panel { padding: 20px; }
  .layanan-grid-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .layanan-grid-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .glass-aksi-baris .btn { flex: 0 1 auto; }
}
@media (max-width: 520px) {
  .glass-panel { padding: 14px; border-radius: 16px; }
  .konf-baris { flex-direction: column; gap: 2px; }
  .konf-baris > span { flex: none; }
  .konf-baris > strong { text-align: left; }
  .glass-ringkas .price { font-size: 22px; }
  .glass-aksi-baris .btn { flex: 1 1 100%; }
}

/* Kartu "Order masuk" di panel driver (notifikasi in-app) */
.order-masuk-list { display: grid; gap: 12px; }
.order-masuk-item {
  border-radius: 14px; padding: 12px 13px; display: grid; gap: 4px;
  background: rgba(193, 39, 45, .05); border: 1px solid var(--brand-line);
}
.order-masuk-item .omi-atas { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-masuk-item .omi-bawah { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 6px; }
.order-masuk-item .price-kecil { font-weight: 800; color: var(--brand-dark); }
#jumlah-order-badge.is-ada { animation: pulseOrder 1.4s ease-in-out infinite; }
@keyframes pulseOrder { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ================================================================ *
 * ALUR PESANAN GAYA MAXIM — peta penuh + panel bawah (bottom sheet)
 * Tata letak & alur mengikuti aplikasi taksi online Maxim:
 *   peta selalu memenuhi layar, isian & tombol berada di panel bawah
 *   yang bisa digulir. Warna tetap palet merah gelap BonRide.
 * ================================================================ */

.mx-screen {
  position: relative; display: flex; flex-direction: column;
  height: min(780px, calc(100vh - 150px)); min-height: 600px;
  background: #eceef1; overflow: hidden;
}
.mx-screen > .mx-map { flex: 1 1 auto; min-height: 150px; }
.mx-map { position: relative; background: #e6e9ed; overflow: hidden; }
.mx-map-kanvas { position: absolute; inset: 0; }
.mx-map-kanvas.is-gagal { display: none; }
.mx-map-fallback {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 400;
  background: #fffbeb; border: 1px solid #fde9b8; border-radius: 14px;
  padding: 10px 12px; font-size: 11.5px; line-height: 1.45; color: #7a5710;
}
.mx-map-fallback p { margin: 0; }

/* --- elemen melayang di atas peta --- */
.mx-top { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 500; display: flex; align-items: center; gap: 8px; }
.mx-user {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  background: #fff; border-radius: 999px; padding: 6px 15px 6px 6px;
  box-shadow: 0 8px 22px rgba(18, 12, 24, .16); color: var(--ink);
}
.mx-user:hover { text-decoration: none; }
.mx-avatar {
  width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark)); color: #fff;
  font-size: 12px; font-weight: 800;
}
.mx-user-teks { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mx-user-teks b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-user-teks small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-saldo {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--brand-dark); font-weight: 800; font-size: 12px;
  border-radius: 999px; padding: 9px 14px; box-shadow: 0 8px 22px rgba(18, 12, 24, .16);
  white-space: nowrap;
}
.mx-saldo:hover { text-decoration: none; }
.mx-back {
  width: 36px; height: 36px; flex: none; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; font-size: 16px; box-shadow: 0 8px 20px rgba(18, 12, 24, .18);
}
.mx-back:hover { text-decoration: none; }
.mx-chip {
  background: #fff; border-radius: 999px; padding: 8px 13px; font-size: 11.5px; font-weight: 700;
  color: var(--ink); box-shadow: 0 8px 20px rgba(18, 12, 24, .14);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.mx-chip.is-brand { background: var(--brand-dark); color: #fff; }
.mx-chip.is-ok { background: #12813f; color: #fff; }

/* --- panel bawah (bottom sheet) --- */
.mx-sheet {
  position: relative; z-index: 600; flex: 0 0 auto;
  margin-top: -20px; max-height: 68%; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 22px 22px 0 0;
  box-shadow: 0 -14px 34px rgba(18, 12, 24, .18);
  padding: 6px 16px calc(16px + env(safe-area-inset-bottom));
}
.mx-sheet.is-rapat { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.mx-grab { width: 42px; height: 4px; border-radius: 999px; background: #d9d9df; margin: 6px auto 12px; }

/* --- kolom pencarian tujuan (beranda) --- */
.mx-field-cari {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 14px;
  background: #f6f6f8; border: 1px solid #eeeef1; color: var(--ink); margin-bottom: 14px;
}
.mx-field-cari:hover { text-decoration: none; border-color: var(--brand-line); }
.mx-field-ikon {
  width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); font-size: 14px;
}
.mx-field-cari > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mx-field-cari b { font-size: 14px; }
.mx-field-cari small { font-size: 11.5px; color: var(--muted); }
.mx-field-panah { margin-left: auto; color: var(--muted); font-size: 15px; }

/* --- kartu layanan mendatar (tiles) --- */
.mx-tiles {
  display: flex; gap: 9px; overflow-x: auto; padding: 2px 0 8px; margin: 0 -2px;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.mx-tiles::-webkit-scrollbar { display: none; }
.mx-tile {
  position: relative; flex: 0 0 auto; width: 94px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 11px 8px 10px; border-radius: 15px; border: 1.5px solid #eeeef1; background: #fff;
  color: var(--ink); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.mx-tile:hover { text-decoration: none; border-color: var(--brand-line); transform: translateY(-1px); }
.mx-tile input { position: absolute; opacity: 0; pointer-events: none; }
.mx-tile .mx-ikon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark);
}
.mx-tile .mx-ikon svg { width: 23px; height: 23px; }
.mx-tile .ro-name { font-size: 11px; font-weight: 700; line-height: 1.25; }
.mx-tile .ro-ket { display: none; }
.mx-tile .ro-price { font-size: 10.5px; font-weight: 800; color: var(--brand-dark); line-height: 1.2; }
.mx-tile .ro-price span { display: none; }
.mx-tile .lk-lencana {
  position: absolute; top: 6px; right: 6px; background: var(--brand); color: #fff;
  font-size: 8px; font-weight: 800; letter-spacing: .06em; padding: 2px 5px; border-radius: 999px;
}
.mx-tile:has(input:checked) {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(193, 39, 45, .1);
}
.mx-tile:has(input:checked) .mx-ikon { background: var(--brand); color: #fff; }
.mx-tile.is-terpilih { border-color: var(--brand); background: var(--brand-soft); }

/* --- baris titik jemput & tujuan --- */
.mx-route { position: relative; display: grid; gap: 8px; margin: 2px 0 12px; }
.mx-route-garis {
  position: absolute; left: 15px; top: 22px; width: 2px; height: 24px;
  background: repeating-linear-gradient(180deg, #d7d7de 0 4px, transparent 4px 8px);
}
.mx-route-baris { position: relative; display: flex; align-items: center; gap: 9px; }
.mx-dot { width: 11px; height: 11px; flex: none; border-radius: 50%; margin: 0 4px; }
.mx-dot-asal { background: #12813f; box-shadow: 0 0 0 3px rgba(18, 129, 63, .15); }
.mx-dot-tujuan { background: var(--brand); box-shadow: 0 0 0 3px rgba(193, 39, 45, .15); }
.mx-route-baris input {
  flex: 1 1 auto; min-width: 0; border: 1px solid #ececef; background: #f7f7f9;
  border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
}
.mx-route-baris input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(193, 39, 45, .1); }
.mx-mini {
  flex: none; width: 36px; height: 36px; border-radius: 11px; border: 1px solid #ececef;
  background: #fff; color: var(--brand-dark); font-size: 14px; cursor: pointer; line-height: 1;
}
.mx-mini:hover { background: var(--brand-soft); border-color: var(--brand-line); }

/* --- pilihan metode bayar ringkas --- */
.mx-bayar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.mx-bayar::-webkit-scrollbar { display: none; }
.mx-bayar label {
  position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 7px;
  padding: 10px 13px; border-radius: 12px; border: 1.5px solid #eeeef1; background: #fff;
  font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer; white-space: nowrap;
}
.mx-bayar input { position: absolute; opacity: 0; pointer-events: none; }
.mx-bayar label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.mx-bayar .mx-bayar-ikon { font-size: 14px; }

/* --- bar bawah: total + tombol pesan --- */
.mx-foot {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid #f0f0f3;
}
.mx-total { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.mx-total span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.mx-total b { font-size: 18px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.mx-cta {
  margin-left: auto; flex: 0 1 auto; min-width: 0; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  border-radius: 14px; padding: 14px 18px; font: inherit; font-size: 13px; font-weight: 800;
  box-shadow: 0 12px 24px rgba(155, 28, 31, .28); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.mx-cta:disabled { opacity: .55; box-shadow: none; cursor: not-allowed; }
.mx-cta:hover { filter: brightness(1.05); }

/* --- panel isian tambahan & blok lipat --- */
.mx-panel { margin: 10px 0 4px; padding: 12px; border-radius: 14px; background: #fafafb; border: 1px solid #efeff2; }
.mx-panel .field { margin-bottom: 10px; }
.mx-panel .field:last-child { margin-bottom: 0; }
.mx-more { margin-top: 10px; border: 1px solid #efeff2; border-radius: 14px; background: #fafafb; overflow: hidden; }
.mx-more > summary {
  list-style: none; cursor: pointer; padding: 12px 14px; font-size: 12.5px; font-weight: 700;
  color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.mx-more > summary::-webkit-details-marker { display: none; }
.mx-more > summary::after { content: "▾"; font-size: 11px; color: var(--muted); transition: transform .15s ease; }
.mx-more[open] > summary::after { transform: rotate(180deg); }
.mx-more-isi { padding: 0 14px 14px; }
.mx-more-isi .field:last-child { margin-bottom: 0; }

/* --- beranda: promo BonView & tautan cepat --- */
.mx-promo-bv {
  display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 12px 14px;
  border-radius: 15px; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #2a1215, #6c1114 60%, #b81f24);
  box-shadow: 0 12px 26px rgba(74, 12, 15, .28);
}
.mx-promo-bv:hover { text-decoration: none; }
.mx-promo-bv .mpb-ikon {
  width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); font-size: 16px;
}
.mx-promo-bv .mpb-teks { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mx-promo-bv b { font-size: 13px; }
.mx-promo-bv small { font-size: 11px; color: rgba(255, 255, 255, .8); }
.mx-promo-bv .mpb-lencana {
  margin-left: auto; flex: none; background: #ffd7d3; color: #9b1c1f;
  font-size: 9px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px;
}
.mx-langkah { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.mx-langkah b { color: var(--ink); }

/* --- konfirmasi pesanan --- */
.mx-konf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mx-konf-head .eyebrow { color: var(--muted); }
.mx-konf-head .price { font-size: 24px; line-height: 1.1; }
.mx-konf-baris { display: grid; gap: 0; margin: 4px 0 10px; }
.mx-konf-baris .konf-baris { border-bottom: 1px dashed #ececef; padding: 9px 0; font-size: 12.5px; }
.mx-konf-baris .konf-baris > span { color: var(--muted); }
.mx-konf-baris .konf-baris > strong { color: var(--ink); }
.mx-status-cari {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 14px;
  background: var(--amber-soft); border: 1px solid #fde9b8; color: #7a5710; font-size: 12px; margin-bottom: 12px;
}
.mx-status-cari.is-ok { background: var(--green-soft); border-color: #bfe8cd; color: #0f6b36; }
.mx-status-cari .mss-ikon { font-size: 16px; flex: none; }
.mx-aksi-baris { display: flex; gap: 10px; margin-top: 12px; }
.mx-aksi-baris .btn { flex: 1 1 0; }
.mx-btn-utama {
  width: 100%; border: 0; cursor: pointer; color: #fff; font: inherit; font-weight: 800; font-size: 13.5px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 14px; padding: 15px 18px; box-shadow: 0 12px 26px rgba(155, 28, 31, .28);
}
.mx-btn-utama:disabled { opacity: .55; box-shadow: none; cursor: not-allowed; }

/* --- animasi mencari driver (radar) --- */
.mx-cari {
  position: absolute; inset: 0; z-index: 900; display: grid; place-items: center; padding: 20px;
  background: rgba(24, 8, 12, .74);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.mx-cari[hidden] { display: none; }
.mx-cari-kartu {
  width: 100%; max-width: 318px; background: #fff; border-radius: 22px; padding: 22px 20px 18px;
  text-align: center; box-shadow: 0 26px 60px rgba(0, 0, 0, .42); max-height: 100%; overflow-y: auto;
}
.mx-cari-kartu h3 { font-size: 16px; margin: 0 0 6px; }
.mx-cari-kartu p { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.mx-radar { position: relative; width: 128px; height: 128px; margin: 4px auto 14px; display: grid; place-items: center; }
.mx-radar span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(193, 39, 45, .5); animation: mxDenyut 2.4s ease-out infinite;
}
.mx-radar span:nth-child(2) { animation-delay: .8s; }
.mx-radar span:nth-child(3) { animation-delay: 1.6s; }
.mx-radar i {
  position: relative; width: 56px; height: 56px; border-radius: 50%; font-style: normal; font-size: 24px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  box-shadow: 0 12px 26px rgba(155, 28, 31, .38);
}
@keyframes mxDenyut {
  0% { transform: scale(.3); opacity: .9; }
  70% { opacity: .16; }
  100% { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mx-radar span { animation: none; opacity: .28; }
}
.mx-cari-info {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: #f7f7f9; font-size: 12px; margin-bottom: 12px;
}
.mx-cari-info b { font-size: 14px; }

/* --- halaman lacak --- */
.mx-track-top { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 500; display: grid; gap: 8px; }
.mx-track-baris { display: flex; align-items: center; gap: 8px; }
.mx-driver { display: flex; align-items: center; gap: 12px; }
.mx-driver-aksi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.mx-driver-aksi .btn { justify-content: center; }
.mx-eta { display: flex; align-items: baseline; gap: 8px; }
.mx-eta b { font-size: 22px; font-weight: 800; line-height: 1; }
.mx-eta span { font-size: 12px; color: var(--muted); }

@media (max-width: 520px) {
  .mx-screen { height: calc(100vh - 78px); min-height: 520px; }
  .mx-sheet { padding-left: 13px; padding-right: 13px; max-height: 72%; }
  .mx-tile { width: 86px; }
  .mx-tile .ro-name { font-size: 10.5px; }
  .mx-total b { font-size: 16px; }
  .mx-cta { padding: 13px 14px; font-size: 12px; }
  .mx-konf-head .price { font-size: 21px; }
  .mx-user-teks small { display: none; }
  .mx-driver-aksi .btn { font-size: 11.5px; padding: 9px 8px; }
}

/* Peta di dalam .mx-map harus mengisi penuh area peta (gaya Maxim). */
.mx-map .peta-pilih,
.mx-map .peta-lacak { position: absolute; inset: 0; border: 0; border-radius: 0; background: transparent; }
.mx-map .peta-kanvas { height: 100%; }
.mx-map .peta-fallback { position: absolute; inset: auto 12px 12px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde9b8; }
.mx-map .peta-petunjuk { display: none; }
/* Daftar hasil pencarian alamat ditampilkan di dalam panel bawah (bukan melayang). */
.peta-hasil.mx-hasil { position: static; margin-top: 6px; box-shadow: none; border: 1px solid #ececef; border-radius: 12px; }
.mx-route-teks {
  flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mx-judul {
  margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
/* Peta bergaya SVG (perjalanan lama tanpa koordinat) harus mengisi area peta. */
.mx-map .peta-lacak-gaya svg, .mx-map .peta-lacak-gaya > * { width: 100%; height: 100%; display: block; }

/* Panel identitas pelanggan pada form order (selalu terlihat) */
.mx-identitas { margin: 10px 0 0; }
.mx-identitas .field label { font-size: 12px; font-weight: 700; }
.mx-identitas input { padding: 10px 12px; font-size: 13px; }
.mx-identitas .hint { font-size: 11px; }

/* Kolom Nomor HP: isian manual + tombol "Pakai nomor akun".
   Tujuannya hanya membantu (isi otomatis dari akun); isian manual tetap bisa dipakai. */
.hp-aksi { display: flex; gap: 8px; align-items: stretch; }
.hp-aksi input { flex: 1 1 auto; min-width: 0; }
.hp-aksi-tombol {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(193, 39, 45, .35); background: #fff7f7; color: var(--brand-dark, #9b1c1f);
  font: inherit; font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.hp-aksi-tombol:hover { background: #fdeced; border-color: var(--brand, #c1272d); }
.hp-aksi-tombol:active { transform: scale(.98); }
.hp-aksi-tombol:focus-visible { outline: 2px solid var(--brand, #c1272d); outline-offset: 2px; }
.hp-aksi-tombol .mono { font-weight: 600; opacity: .85; }
.hp-aksi-tombol.is-terpakai { background: #eaf7ef; border-color: #12b76a; color: #0a7a45; }
.hp-aksi-ikon { font-size: 13px; }
.hp-nota { margin: 6px 0 0; font-size: 11px; }
.hp-nota.is-ok { color: #0a7a45; font-weight: 700; }
@media (max-width: 520px) {
  .mx-identitas .grid-2 { grid-template-columns: 1fr; }
  .hp-aksi { flex-wrap: wrap; }
  .hp-aksi-tombol { width: 100%; justify-content: center; }
}

/* Cegah baris kartu layanan (flex mendatar) melebarkan kerangka telepon:
   grid shell memakai kolom minmax(0,1fr) dan semua panel boleh menyusut. */
.device-shell { grid-template-columns: minmax(0, 1fr); }
.device, .device-screen { min-width: 0; }
.mx-screen { width: 100%; min-width: 0; }
.mx-sheet { min-width: 0; }
.mx-tiles, .mx-bayar { max-width: 100%; min-width: 0; }
.mx-route-baris { min-width: 0; }

/* Tombol pesan selalu terlihat di bawah panel (gaya Maxim): bar total + CTA
   menempel di dasar panel yang bisa digulir. */
.mx-order-sheet { padding-bottom: 0; max-height: 64%; }
.mx-order-sheet .mx-foot {
  position: sticky; bottom: 0; z-index: 5;
  margin: 12px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff; box-shadow: 0 -8px 18px rgba(18, 12, 24, .07);
  border-top: 1px solid #f0f0f3;
}
.mx-order-sheet .mx-foot + p { padding-bottom: 8px; }
.mx-screen.mx-order > .mx-map { min-height: 200px; }
@media (max-width: 520px) {
  .mx-order-sheet .mx-foot { margin-left: -13px; margin-right: -13px; padding-left: 13px; padding-right: 13px; }
}

/* Panel form order: isi digulir, bar total + tombol pesan selalu di dasar panel
   (pola layar pemesanan Maxim). */
.mx-order-sheet { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.mx-order-sheet .mx-isi { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; }
.mx-order-sheet .mx-foot { position: static; flex: 0 0 auto; margin: 10px -16px 0; box-shadow: 0 -8px 18px rgba(18, 12, 24, .07); }
@media (max-width: 520px) {
  .mx-order-sheet .mx-foot { margin-left: -13px; margin-right: -13px; }
}

/* Di ponsel, alur pesanan tampil seperti aplikasi: judul besar di luar kerangka
   telepon disembunyikan supaya peta + panel bawah memenuhi layar (gaya Maxim). */
@media (max-width: 520px) {
  .page-mx .device-headline { display: none; }
  .page-mx .device-shell { gap: 0; }
  .page-mx main.wrap { padding: 0; }
  .page-mx .device { padding: 0; }
  .page-mx .mx-screen {
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    min-height: 420px;
  }
  .page-mx .mx-sheet { border-radius: 20px 20px 0 0; }
}

/* Ponsel: alur pesanan mengisi sisa layar di bawah bilah atas (tanpa gulir
   halaman), berapa pun tinggi bilah atasnya (tamu vs sudah masuk). */
@media (max-width: 520px) {
  .page-mx { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
  .page-mx main.wrap { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .page-mx .device-shell { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; gap: 0; }
  .page-mx .device { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .page-mx .device-screen { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .page-mx .mx-screen { flex: 1 1 auto; height: auto; min-height: 0; }
  .page-mx .mx-sheet { max-height: 58vh; }
  .page-mx .mx-order-sheet { max-height: 58vh; }
  .page-mx .mx-map { min-height: 120px; }
  .page-mx .mx-screen.mx-order > .mx-map { min-height: 150px; }
}

/* Kanvas Google Maps bisa punya lebar tetap dari pengukuran awal; item flex
   wajib boleh menyusut (min-width:0) agar tidak melebarkan layar ponsel. */
.mx-map, .mx-map-kanvas, .mx-screen, .mx-sheet, .device, .device-screen, .device-shell { min-width: 0; }
.mx-map, .mx-map-kanvas { max-width: 100%; }

/* Item flex tidak boleh dipaksa selebar kontennya (min-width:auto) — kalau tidak,
   baris kartu layanan mendatar bisa melebarkan seluruh halaman di ponsel. */
.page-mx main.wrap { min-width: 0; }
@media (max-width: 520px) {
  .page-mx main.wrap { width: 100%; }
  .page-mx .device-shell, .page-mx .device, .page-mx .device-screen { width: 100%; max-width: 100%; min-width: 0; }
}

/* ================================================================ *
 * Pencarian alamat (saran di dalam panel) + blok titik tujuan +
 * mode "Lihat di peta" — melengkapi alur gaya Maxim.
 * ================================================================ */

.peta-hasil-item {
  display: flex; align-items: flex-start; gap: 9px; width: 100%;
  text-align: left; border: 0; border-bottom: 1px solid #f2f2f4; background: none;
  padding: 10px 11px; cursor: pointer; font: inherit;
}
.peta-hasil-item:last-of-type { border-bottom: 0; }
.peta-hasil-item:hover, .peta-hasil-item:focus-visible { background: #fff7f7; }
.peta-hasil-ikon { flex: none; font-size: 13px; line-height: 1.5; }
.peta-hasil-teks { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.peta-hasil-nama { font-size: 13px; font-weight: 700; color: var(--ink); }
.peta-hasil-alamat { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.peta-hasil-sumber {
  margin-top: 3px; align-self: flex-start; font-size: 9.5px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: var(--brand-dark); background: var(--brand-soft);
  padding: 2px 7px; border-radius: 999px;
}
.peta-hasil-pilih {
  flex: none; align-self: center; font-size: 11px; font-weight: 800; color: var(--brand-dark);
  border: 1px solid var(--brand-line); border-radius: 999px; padding: 4px 9px; white-space: nowrap;
}
.peta-hasil-catatan {
  padding: 9px 11px; font-size: 11px; line-height: 1.45; color: #7a5710;
  background: #fffbeb; border-top: 1px solid #fde9b8; border-radius: 0 0 12px 12px;
}

/* Blok titik tujuan terpilih */
.mx-titik {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 10px;
  margin: 10px 0 0; padding: 11px 12px; border-radius: 14px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
}
.mx-titik[hidden] { display: none; }
.mx-titik-ikon { font-size: 15px; line-height: 1.35; }
.mx-titik-teks { display: flex; flex-direction: column; min-width: 0; }
.mx-titik-teks b { font-size: 13px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.mx-titik-teks span { font-size: 11.5px; color: #7a4a4c; line-height: 1.35; }
.mx-titik-teks code {
  margin-top: 2px; font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 10.5px; color: #8a5557;
}
.mx-titik-aksi { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mx-mini-tombol {
  appearance: none; border: 1px solid var(--brand-line); background: #fff; color: var(--brand-dark);
  border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 11.5px; font-weight: 700;
  cursor: pointer; white-space: nowrap; line-height: 1.2;
}
.mx-mini-tombol:hover { background: #fff3f2; text-decoration: none; }
.mx-mini-tombol.is-bahaya { color: #8a1f24; border-color: #f0c9c7; }

/* Bar alamat saat peta ditampilkan penuh */
.mx-peta-bar {
  position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 600;
  display: flex; align-items: center; gap: 9px;
  background: #fff; border-radius: 14px; padding: 9px 10px 9px 12px;
  box-shadow: 0 14px 30px rgba(18, 12, 24, .24);
}
.mx-peta-bar[hidden] { display: none; }
.mx-peta-bar-ikon { flex: none; font-size: 14px; }
.mx-peta-bar-teks {
  flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mx-peta-bar-tutup {
  flex: none; border: 0; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 999px; padding: 8px 12px; white-space: nowrap;
}

/* Mode peta penuh: panel isi form turun, peta + pin tujuan terlihat */
.mx-screen.is-peta-penuh .mx-sheet {
  transform: translateY(calc(100% - 74px));
  transition: transform .3s ease;
}
.mx-screen.is-peta-penuh .mx-map { flex: 1 1 auto; }
.mx-sheet { transition: transform .3s ease; }
@media (prefers-reduced-motion: reduce) {
  .mx-screen.is-peta-penuh .mx-sheet, .mx-sheet { transition: none; }
}

/* Petunjuk titik jemput pada form order (menggantikan halaman galat) */
.mx-nota {
  margin: 8px 0 0; padding: 9px 11px; border-radius: 12px; font-size: 11.5px; line-height: 1.4;
  background: #fffbeb; border: 1px solid #fde9b8; color: #7a5710;
}
.mx-nota[hidden] { display: none; }
.mx-route-baris.is-sorot input { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(180, 83, 9, .14); }

/* ================================================================ *
 * Logo navbar kustom (unggahan pemilik dari Dashboard Pusat)
 * ================================================================ */
.brand-logo {
  display: block; height: 34px; width: auto; max-width: 190px;
  object-fit: contain; border-radius: 8px;
}
.brand-logo.is-putih { background: #fff; padding: 3px 8px; }
.brand-logo.is-transparan { background: transparent; padding: 0; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.brand.brand-logo-unggahan { gap: 0; }

/* Pratinjau di Dashboard Pusat */
.logo-preview { display: grid; gap: 8px; justify-items: start; }
.logo-preview-bilah {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 12px; min-height: 56px;
  background: linear-gradient(115deg, #4a0c0f, #8d1c1f 62%, #a3171c);
  border: 1px solid rgba(0, 0, 0, .2);
}
.logo-preview-bilah .brand-mark {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .18); color: #fff; font-size: 14px;
}
.logo-preview-bilah .brand-text { color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.logo-preview-bilah .brand-text em { font-style: normal; color: #ffb4b6; }

@media (max-width: 700px) {
  .brand-logo { height: 28px; max-width: 150px; }
  .brand-logo.is-putih { padding: 2px 6px; }
}

/* ================================================================ *
 * Navigasi per peran (permintaan pemilik, 2026-10-31)
 *   .page-menu-sidebar → kolom kiri menetap (Pusat & Agen Wilayah)
 *   .page-menu-drawer  → drawer dari kanan (Pelanggan & Mitra Driver)
 *   .page-menu-topbar  → bilah atas seperti semula (publik & UMKM)
 * ================================================================ */

/* Tombol ☰ (hanya tampil saat menu tidak selalu terlihat) */
.menu-btn {
  display: none; flex: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; font-size: 17px; line-height: 1; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .14); color: #fff;
}
.menu-btn:hover { background: rgba(255, 255, 255, .24); }
.page-menu-drawer .menu-btn { display: inline-flex; }

/* ---------------- A. SIDEBAR (Pusat & Agen) ---------------- */
.page-menu-sidebar { display: flex; flex-direction: column; min-height: 100vh; --topbar-h: 62px; }
.page-menu-sidebar .topbar { position: sticky; top: 0; }
.topbar-slim .topbar-inner { min-height: 62px; }
/* Di aplikasi, bilah atas pusat/agen juga memuat formulir pencarian: tetap satu baris. */
.is-app .topbar-slim .topbar-inner { flex-wrap: nowrap; }
.is-app .topbar-slim .topbar-cari { max-width: 420px; }
.shell {
  flex: 1 1 auto; display: grid; align-items: stretch;
  grid-template-columns: 248px minmax(0, 1fr);
}
.shell-main { min-width: 0; }
/* PENTING: `.wrap` memakai `margin: 0 auto`. Pada item grid, margin otomatis membuat
 * item MENYUSUT selebar isinya (bukan memenuhi kolom), sehingga tabel lebar bisa
 * mendorong seluruh halaman melebar di ponsel. Matikan margin otomatis khusus
 * konten sidebar agar kolom grid benar-benar dipakai. */
.page-menu-sidebar .shell > main.wrap {
  margin-left: 0; margin-right: 0; width: auto; max-width: none;
}

.sidebar {
  position: sticky; top: var(--topbar-h, 62px); align-self: start;
  height: calc(100vh - var(--topbar-h, 62px)); overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 12px 18px;
  background: linear-gradient(180deg, #4a0c0f, #6a1013 55%, #7a1418);
  color: #fff; border-right: 1px solid rgba(0, 0, 0, .25);
}
.sidebar-judul {
  margin: 2px 6px 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .6);
}
.sidebar-nav { display: grid; gap: 3px; }
.sidebar .nav-link {
  display: flex; align-items: center; gap: 9px; white-space: normal;
  padding: 10px 12px; border-radius: 11px; font-size: 13.5px; font-weight: 600;
  color: rgba(255, 255, 255, .86); border-left: 3px solid transparent;
}
.sidebar .nav-link:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.sidebar .nav-link.is-active {
  background: rgba(255, 255, 255, .18); color: #fff;
  border-left-color: #ffb4b6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.sidebar-kaki {
  margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16);
  display: grid; gap: 8px; font-size: 12px;
}
.sidebar-pengguna { display: grid; color: rgba(255, 255, 255, .82); font-weight: 600; }
.sidebar-pengguna em { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .62); }
.sidebar-keluar {
  display: inline-flex; justify-content: center; padding: 9px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; font-weight: 700; font-size: 12.5px;
}
.sidebar-keluar:hover { background: rgba(255, 255, 255, .24); text-decoration: none; }

/* Backdrop bersama */
.panel-backdrop {
  display: none; position: fixed; inset: 0; z-index: 55;
  background: rgba(20, 8, 12, .5);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}

/* ---------------- B. DRAWER (Pelanggan & Driver) ---------------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(324px, 88vw); background: #fff; color: var(--ink);
  display: flex; flex-direction: column; gap: 2px;
  transform: translateX(102%); transition: transform .26s ease;
  box-shadow: -18px 0 48px rgba(20, 8, 12, .34);
  overflow-y: auto;
}
.page-menu-drawer.drawer-terbuka .drawer { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px 8px;
}
.drawer-judul {
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.drawer-tutup {
  width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 13px; cursor: pointer;
}
.drawer-tutup:hover { background: #f6f6f8; }
.drawer-pengguna {
  display: flex; align-items: center; gap: 10px; margin: 0 12px 10px;
  padding: 11px 12px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--brand-line);
}
.drawer-avatar {
  width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark)); color: #fff;
  font-size: 13px; font-weight: 800;
}
.drawer-identitas { display: grid; min-width: 0; line-height: 1.25; }
.drawer-identitas b { font-size: 13px; }
.drawer-identitas small { font-size: 11px; color: #7a4a4c; }
.drawer-nav { display: grid; gap: 2px; padding: 4px 10px 10px; }
.drawer .nav-link {
  display: flex; align-items: center; gap: 9px; white-space: normal;
  padding: 11px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink);
}
.drawer .nav-link:hover { background: #f6f6f8; text-decoration: none; }
.drawer .nav-link.is-active { background: var(--brand-soft); color: var(--brand-dark); }
.drawer-kaki { margin-top: auto; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer-keluar {
  display: flex; justify-content: center; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  font-weight: 700; font-size: 13.5px;
}
.drawer-keluar:hover { text-decoration: none; filter: brightness(1.05); }
.drawer-backdrop {
  display: none; position: fixed; inset: 0; z-index: 65;
  background: rgba(20, 8, 12, .48);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.page-menu-drawer.drawer-terbuka .drawer-backdrop { display: block; opacity: 1; pointer-events: auto; }
body.drawer-terbuka, body.sidebar-terbuka { overflow: hidden; }

/* ---------------- C. Responsif ---------------- */
@media (max-width: 1024px) {
  .shell { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  /* Sidebar menjadi drawer dari kiri di layar kecil. */
  .page-menu-sidebar .menu-btn { display: inline-flex; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 70;
    width: min(276px, 84vw); height: 100%;
    transform: translateX(-102%); transition: transform .26s ease;
    box-shadow: 18px 0 48px rgba(20, 8, 12, .34);
  }
  .page-menu-sidebar.sidebar-terbuka .sidebar { transform: none; }
  .page-menu-sidebar.sidebar-terbuka .panel-backdrop { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .sidebar, .drawer-backdrop { transition: none; }
}

/* ================================================================ *
 * Pembayaran GDCPay: pilihan kanal (Virtual Account / QRIS) + tagihan
 * ================================================================ */
.kanal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kanal-opsi {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left;
  padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink); cursor: pointer; font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.kanal-opsi:hover { border-color: var(--brand-line); transform: translateY(-1px); }
.kanal-opsi.is-aktif { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(193, 39, 45, .1); }
.kanal-ikon {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark); font-size: 15px;
}
.kanal-opsi.is-aktif .kanal-ikon { background: var(--brand); color: #fff; }
.kanal-teks { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kanal-teks b { font-size: 13.5px; }
.kanal-teks small { font-size: 11.5px; color: var(--muted); line-height: 1.35; }

.gdc-va {
  background: linear-gradient(140deg, #2a1215, #4a0c0f 60%, #7a1418);
  border-radius: 16px; padding: 16px 18px; color: #fff; border: 1px solid rgba(255, 255, 255, .14);
}
.gdc-va-bank { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.gdc-va-nomor {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 25px; font-weight: 700; letter-spacing: .06em; margin: 8px 0 4px; word-break: break-all; line-height: 1.25;
}
.gdc-va-nama { font-size: 12px; color: rgba(255, 255, 255, .82); }
.gdc-va .small, .gdc-va .tag { color: rgba(255, 255, 255, .8); }
.gdc-va .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); }

.gdc-qris {
  background: #fff; border: 1.5px dashed var(--brand-line); border-radius: 16px; padding: 16px; text-align: center;
}
.gdc-qris-judul { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.gdc-qris-gambar { display: block; margin: 10px auto 0; width: 100%; max-width: 240px; border-radius: 12px; background: #fff; }
.gdc-qris-mentah {
  margin: 10px 0 0; padding: 10px; border-radius: 10px; background: #f7f7f9; border: 1px solid var(--line);
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 11px; white-space: pre-wrap; word-break: break-all;
  text-align: left; max-height: 150px; overflow: auto;
}

@media (max-width: 560px) {
  .kanal-grid { grid-template-columns: 1fr; }
  .gdc-va-nomor { font-size: 20px; }
}

/* ================================================================ *
 * Kontak dua arah pelanggan ⇄ driver (Panel Driver & halaman Lacak)
 * ================================================================ */
.kontak-pihak {
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; background: #fff;
  display: grid; gap: 10px;
}
.kontak-pihak + .kontak-pihak { margin-top: 10px; }
.kp-atas { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kp-atas b { font-size: 14px; display: block; }
.kp-atas small { font-size: 11.5px; color: var(--muted); }
.kp-hp {
  font-size: 13px; font-weight: 700; color: var(--brand-dark);
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.kp-aksi { display: flex; gap: 8px; flex-wrap: wrap; }
.kp-aksi .btn { flex: 0 1 auto; }

/* Kartu titik jemput terpilih (Form Order) */
.mx-titik-asal { background: var(--green-soft, #e7f6ec); border-color: #bfe8cd; }
.mx-titik-asal .mx-titik-teks span { color: #0f6b36; }
.mx-titik-asal .mx-titik-teks code { color: #14724a; }

@media (max-width: 560px) {
  .kp-aksi .btn { flex: 1 1 100%; }
}

/* ------------------------------------------------------------------ *
 * Chat & Notifikasi (menu bawah aplikasi Android: Chat, Notifikasi)
 * ------------------------------------------------------------------ */

.chat-daftar, .notif-daftar { display: grid; gap: 10px; }

.chat-item, .notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.chat-item:active, .notif-item:active { transform: scale(0.995); }

.chat-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--brand), var(--deep));
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  display: grid;
  place-items: center;
}
.chat-tengah, .notif-teks { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.chat-tengah b, .notif-teks b { font-size: 14px; }
.chat-tengah small, .notif-teks small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-kanan { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.chat-kanan small { color: var(--muted); font-size: 11px; }
.chat-badge {
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 6px;
}

.notif-ikon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  font-size: 17px;
}
.notif-panah { color: var(--muted); font-size: 20px; line-height: 1; }

/* Ruang percakapan */
.chat-body { display: flex; flex-direction: column; gap: 12px; min-height: 60vh; }
.chat-ruang {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 8px;
  max-height: 62vh;
  overflow-y: auto;
}
.chat-balon {
  max-width: 84%;
  padding: 9px 12px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 6px 16px rgba(24, 24, 27, 0.06);
}
.chat-balon.is-lawan { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-balon.is-saya { background: linear-gradient(150deg, var(--brand), var(--brand-dark)); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-nama { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; opacity: .8; }
.chat-isi { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.chat-jam { font-size: 10px; opacity: .7; align-self: flex-end; }
.chat-kosong { color: var(--muted); font-size: 13px; text-align: center; margin: 18px 0; }

.chat-form { display: flex; gap: 8px; align-items: center; }
.chat-form input[type="text"], .chat-form input:not([type]) {
  flex: 1 1 auto;
  min-width: 0;
}
.chat-form .btn { flex: 0 0 auto; }

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

/* ------------------------------------------------------------------ *
 * Menu ☰ — Registrasi Akun Baru (/daftar-akun)
 * Dipakai tab "Menu" di aplikasi Android.
 *
 * Struktur kartu (permintaan pemilik 2026-11-01 — kartu "Sudah punya akun?"
 * dihapus, kartu jenis akun dipertahankan & diperbaiki strukturnya):
 *   .dk-atas  ikon + nomor urut
 *   .daftar-isi  judul + ringkasan
 *   .dk-poin  daftar data yang perlu disiapkan
 *   .dk-kaki  label status verifikasi + perkiraan waktu
 *   .dk-cta   tombol ajakan (di dasar kartu, selalu sejajar)
 * ------------------------------------------------------------------ */

.daftar-menu { display: block; }
.daftar-sub { max-width: 62ch; }

/* Grid 2 × 2 di layar lebar (kartu kini memuat poin & tombol, jadi butuh ruang),
   satu kolom di ponsel. Jangan memakai auto-fit 4 kolom: baris terakhir jadi
   menggantung satu kartu sendirian. */
.daftar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 760px) {
  .daftar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.daftar-kartu {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.daftar-kartu::before {
  content: "";
  position: absolute; inset: 0 0 auto; height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--brand);
  opacity: .85;
}
.daftar-kartu.is-biru::before { background: var(--blue); }
.daftar-kartu.is-hijau::before { background: var(--green); }
.daftar-kartu.is-ungu::before { background: #7c3aed; }
.daftar-kartu:hover,
.daftar-kartu:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-line);
  text-decoration: none;
}

.dk-atas { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dk-nomor {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  color: var(--muted); padding-top: 4px;
}

.daftar-ikon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  background: var(--brand-soft);
}
.daftar-kartu.is-merah .daftar-ikon { background: var(--brand-soft); }
.daftar-kartu.is-biru .daftar-ikon { background: var(--blue-soft); }
.daftar-kartu.is-hijau .daftar-ikon { background: var(--green-soft); }
.daftar-kartu.is-ungu .daftar-ikon { background: #efe9ff; }

.daftar-isi { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.daftar-isi b { font-size: 16.5px; letter-spacing: -.01em; }
.daftar-isi small { color: var(--muted); font-size: 12.8px; line-height: 1.5; }
.daftar-isi em { color: var(--muted); font-size: 12px; font-style: normal; }

/* daftar data yang perlu disiapkan */
.dk-poin {
  list-style: none; margin: 0; padding: 12px 0 0;
  border-top: 1px dashed var(--line);
  display: grid; gap: 6px; font-size: 12.5px; color: var(--ink);
}
.dk-poin li { display: flex; align-items: flex-start; gap: 8px; min-width: 0; line-height: 1.4; }
.dk-poin li::before {
  content: "✓"; flex: none; width: 16px; height: 16px; margin-top: 1px;
  display: grid; place-items: center; border-radius: 50%;
  font-size: 9.5px; font-weight: 800;
  color: var(--green); background: var(--green-soft);
}

/* kaki kartu: status verifikasi + perkiraan waktu */
.dk-kaki {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 4px;
}
.dk-status {
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  color: var(--brand-dark); background: var(--brand-soft);
}
.dk-status.is-ok { color: var(--green); background: var(--green-soft); }
.dk-status.is-warn { color: var(--amber); background: var(--amber-soft); }
.dk-status.is-info { color: var(--blue); background: var(--blue-soft); }
.dk-meta { font-size: 11.5px; color: var(--muted); }

/* tombol ajakan di dasar kartu */
.dk-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; border-radius: 11px;
  font-size: 13px; font-weight: 700;
  color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  box-shadow: 0 8px 18px rgba(193, 39, 45, .2);
  transition: filter .15s ease;
}
.daftar-kartu.is-biru .dk-cta { background: linear-gradient(120deg, #2563eb, #1d4ed8); box-shadow: 0 8px 18px rgba(29, 78, 216, .2); }
.daftar-kartu.is-hijau .dk-cta { background: linear-gradient(120deg, #16a34a, var(--green)); box-shadow: 0 8px 18px rgba(18, 129, 63, .2); }
.daftar-kartu.is-ungu .dk-cta { background: linear-gradient(120deg, #8b5cf6, #6d28d9); box-shadow: 0 8px 18px rgba(109, 40, 217, .2); }
.daftar-kartu:hover .dk-cta { filter: brightness(1.06); }
.dk-cta i { font-style: normal; font-size: 17px; line-height: 1; opacity: .9; }

.daftar-catatan {
  margin: 20px 0 0; font-size: 12px; color: var(--muted); line-height: 1.55;
  max-width: 78ch;
}

.kode-besar {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--brand-dark);
  margin: 6px 0 8px;
  word-break: break-word;
}

@media (max-width: 700px) {
  .daftar-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 520px) {
  .daftar-kartu { padding: 16px; gap: 11px; }
  .daftar-ikon { width: 44px; height: 44px; border-radius: 14px; font-size: 20px; }
  .daftar-isi b { font-size: 15.5px; }
  .dk-poin { font-size: 12px; }
  .dk-cta { font-size: 12.5px; padding: 10px 12px; }
  .kode-besar { font-size: 21px; }
}

/* ================================================================ *
 * Bilah atas DI DALAM APLIKASI ANDROID
 * Logo BonRide + formulir pencarian layanan, sejajar horizontal.
 * (Menu Masuk / Pesan Ojek / Daftar Mitra tidak ditampilkan di sini.)
 * ================================================================ */
.topbar-cari {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 520px;
  margin-left: 4px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 4px 4px 4px 12px;
}
.topbar-cari:focus-within {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.6);
}
.topbar-cari .tc-ikon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #fff;
  opacity: .9;
}
.topbar-cari .tc-ikon svg { width: 18px; height: 18px; }
.topbar-cari input[type="search"],
.topbar-cari input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 13.5px;
  padding: 6px 0;
  border-radius: 999px;
}
.topbar-cari input::placeholder { color: rgba(255, 255, 255, 0.72); }
.topbar-cari input:focus { outline: none; }
.topbar-cari input::-webkit-search-cancel-button { filter: invert(1); opacity: .7; }
.topbar-cari .tc-tombol {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 14px;
  cursor: pointer;
}
.topbar-cari .tc-tombol:hover { background: #ffe9e9; }

/* Logo & pencarian harus tetap satu baris (jangan turun ke baris kedua). */
.is-app .topbar-inner { flex-wrap: nowrap; gap: 10px; }
.is-app .brand { flex: 0 0 auto; }
.is-app .topbar-right { flex: 0 0 auto; margin-left: auto; }
.is-app .topbar-right .chip { display: none; }

/* Di ponsel: logo lebih ringkas agar pencarian tetap kebagian ruang. */
@media (max-width: 560px) {
  .is-app .topbar-inner { gap: 8px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  .is-app .brand-text { display: none; }
  .is-app .brand-logo.is-putih { padding: 2px 6px; }
  .topbar-cari { padding-left: 10px; gap: 6px; }
  .topbar-cari input { font-size: 13px; }
  .topbar-cari .tc-tombol { padding: 6px 11px; font-size: 12px; }
  .is-app .topbar-right .btn-ghost { padding: 6px 8px; font-size: 12.5px; }
}

/* Penanda hasil pencarian layanan di beranda */
.mx-cari-hasil {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 10px; font-size: 12.5px; color: var(--muted);
}
.mx-cari-hasil b { color: var(--ink); }
.mx-cari-hasil a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.mx-tile.is-sembunyi { display: none !important; }

/* ------------------------------------------------------------------ *
 * Kartu "Menu aplikasi" — hanya tampil di dalam APLIKASI Android,
 * pengganti tautan menu ☰ pada bilah atas (yang kini hanya logo + pencarian).
 * ------------------------------------------------------------------ */
.app-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.app-menu-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(24, 24, 27, .05);
}
.app-menu-chip::before {
  content: '›';
  color: var(--brand);
  font-size: 17px;
  line-height: 1;
}
.app-menu-chip:hover { border-color: var(--brand-line); text-decoration: none; }
.app-menu-chip:active { transform: scale(.99); }

@media (max-width: 520px) {
  .app-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .app-menu-chip { padding: 10px 11px; font-size: 12.5px; }
}

/* ================================================================
 * Kartu "Peran akun ini" (Mitra Driver & Pelanggan)
 * ================================================================ */

.peran-akun .peran-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.peran-blok {
  padding: 16px; border-radius: 12px; border: 1px solid var(--line);
  background: #fffdfb;
}
.peran-judul {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-dark); margin-bottom: 8px;
}
.peran-daftar { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.peran-daftar li { margin-bottom: 6px; }
.peran-daftar strong { color: var(--ink); }
.peran-blok .table-actions { margin-top: 12px; }

@media (max-width: 720px) {
  .peran-akun .peran-grid { grid-template-columns: 1fr; }
}

/* ================================================================ *
 * Transfer Bank Manual (tanpa Virtual Account)
 *  - panel pembayaran di halaman Top Up driver & BonView (metode utama)
 *  - antrean verifikasi Bonride Pusat (/pusat/transfer-manual)
 * Semua nama kelas berawalan .tf- agar tidak bertabrakan dengan .gdc-*.
 * ================================================================ */

.tf-panel {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--brand-line);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(193, 39, 45, .07), transparent 55%),
    #fff;
  box-shadow: 0 14px 34px rgba(74, 12, 15, .07);
  display: grid;
  gap: 14px;
}
.tf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.tf-head-teks { min-width: 0; }
.tf-head h3 { margin: 2px 0 4px; font-size: 19px; }
.tf-head p { margin: 0; max-width: 62ch; }
.tf-eyebrow {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-dark);
}
.tf-badge {
  flex: none; padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  box-shadow: 0 8px 18px rgba(193, 39, 45, .28);
  white-space: nowrap;
}
.tf-instruksi {
  padding: 11px 13px; border-radius: 12px; background: var(--brand-soft);
  border-left: 3px solid var(--brand); font-size: 12.5px; color: #5f2a2c; line-height: 1.5;
}

/* --- daftar rekening tujuan --- */
.tf-rek-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.tf-rek {
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; background: #fffdfc;
  display: grid; gap: 6px; min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.tf-rek:hover { border-color: var(--brand-line); box-shadow: 0 10px 22px rgba(74, 12, 15, .08); transform: translateY(-1px); }
.tf-rek-atas { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tf-bank {
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: linear-gradient(120deg, #2a1215, var(--brand-dark));
  padding: 3px 9px; border-radius: 8px;
}
.tf-rek-label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tf-rek-nomor {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px; font-weight: 700; letter-spacing: .04em; word-break: break-all; line-height: 1.3;
}
.tf-rek-nama { font-size: 12.5px; color: var(--muted); }
.tf-rek-catatan { font-size: 11.5px; color: var(--brand-dark); }
.tf-copy { justify-self: start; margin-top: 2px; }

/* --- nominal & kode --- */
.tf-tagihan {
  background: linear-gradient(140deg, #2a1215, #4a0c0f 58%, #7a1418);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px; padding: 15px 17px; color: #fff; display: grid; gap: 10px;
}
.tf-tagihan-baris { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tf-tagihan-baris span { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .74); }
.tf-tagihan-baris b { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.tf-tagihan-baris.is-kode b { font-size: 17px; letter-spacing: .06em; }
.tf-tagihan-aksi { display: flex; gap: 8px; flex-wrap: wrap; }
.tf-tagihan .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); }

/* --- langkah --- */
.tf-langkah { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tf-langkah li { display: flex; gap: 11px; align-items: flex-start; }
.tf-langkah b { font-size: 13.5px; display: block; }
.tf-langkah small { font-size: 12px; color: var(--muted); line-height: 1.45; display: block; }
.tf-no {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--brand-dark); background: var(--brand-soft);
  border: 1px solid var(--brand-line);
}

/* --- status pengajuan --- */
.tf-status {
  border-radius: 14px; padding: 13px 15px; border: 1px solid var(--line); background: #fbfbfc;
  display: grid; gap: 8px;
}
.tf-status.is-menunggu { background: var(--amber-soft); border-color: #f6d489; }
.tf-status.is-disetujui { background: var(--green-soft); border-color: #bfe6cd; }
.tf-status.is-ditolak { background: #fdeceb; border-color: var(--brand-line); }
.tf-status.is-kedaluwarsa { background: #f4f4f6; }
.tf-status-atas { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tf-status-rinci {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 6px 16px; font-size: 12.5px;
}
.tf-status-rinci span { display: block; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tf-status-rinci b { font-weight: 600; word-break: break-word; }
.tf-status-rinci li { min-width: 0; }

/* --- bukti transfer --- */
.tf-bukti-pratinjau {
  display: inline-flex; flex-direction: column; gap: 6px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; max-width: 100%;
}
.tf-bukti-pratinjau img { max-width: 100%; width: 190px; height: 128px; object-fit: cover; border-radius: 8px; background: #f4f4f6; }
.tf-bukti-pratinjau span { font-size: 11.5px; color: var(--brand-dark); font-weight: 600; }
.tf-bukti-pratinjau.is-antri img { width: 100%; height: 160px; object-fit: contain; }

/* --- form --- */
.tf-form { display: grid; gap: 12px; }
.tf-field { display: grid; gap: 5px; min-width: 0; }
.tf-field label { font-size: 12.5px; font-weight: 650; color: var(--ink); }
.tf-field .wajib { color: var(--brand); }
.tf-field input[type="text"], .tf-field input:not([type]), .tf-field input[type="file"], .tf-field select, .tf-field textarea {
  width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-size: 14px; color: var(--ink); min-width: 0;
}
.tf-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.tf-field input:focus, .tf-field select:focus, .tf-field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(193, 39, 45, .12);
}
.tf-field input[type="file"] { padding: 9px 11px; background: #fbfbfc; border-style: dashed; font-size: 13px; }
.tf-field .hint { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.field-error, .tf-field .field-error { font-size: 12px; color: #b42318; font-weight: 600; }
.tf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tf-cta { margin-top: 2px; }
.tf-ulang, .tf-tolak {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; background: #fbfbfc;
}
.tf-ulang summary, .tf-tolak summary { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--brand-dark); }
.tf-ulang[open] summary, .tf-tolak[open] summary { margin-bottom: 10px; }
.tf-selesai {
  padding: 12px 14px; border-radius: 12px; background: var(--green-soft);
  border-left: 3px solid var(--green); font-size: 13px;
}
.tf-aturan { margin: 0; }
.tf-pemisah {
  display: flex; align-items: center; gap: 12px; margin: 22px 0 14px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.tf-pemisah::before, .tf-pemisah::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tf-pemisah span { text-align: center; }

/* --- antrean verifikasi Bonride Pusat --- */
.tf-filter {
  display: grid; grid-template-columns: 190px 190px minmax(0, 1fr) auto; gap: 12px; align-items: end;
  padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(24, 24, 27, .05); margin-bottom: 18px;
}
.tf-antri-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.tf-antri {
  border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: 16px; background: #fff; padding: 16px; display: grid; gap: 12px;
  box-shadow: 0 10px 26px rgba(24, 24, 27, .06); min-width: 0;
}
.tf-antri.is-disetujui { border-left-color: var(--green); }
.tf-antri.is-ditolak { border-left-color: var(--brand); }
.tf-antri.is-kedaluwarsa { border-left-color: #b8b8c0; }
.tf-antri-atas { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tf-antri-tipe { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tf-antri-kode { margin: 2px 0 0; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tf-antri-nominal { font-size: 20px; font-weight: 800; color: var(--brand-dark); letter-spacing: -.01em; }
.tf-antri-data { margin: 0; display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 5px 10px; font-size: 12.5px; }
.tf-antri-data dt { color: var(--muted); font-size: 11.5px; }
.tf-antri-data dd { margin: 0; word-break: break-word; }
.tf-antri-aksi { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.tf-antri-aksi .tf-aksi { display: contents; }
.tf-antri-aksi .tf-tolak { flex: 1 1 240px; min-width: 0; }

@media (max-width: 900px) {
  .tf-filter { grid-template-columns: 1fr 1fr; }
  .tf-field-cari { grid-column: 1 / -1; }
  .tf-antri-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .tf-panel { padding: 15px 14px; border-radius: 16px; }
  .tf-row { grid-template-columns: 1fr; }
  .tf-tagihan-baris b { font-size: 21px; }
  .tf-filter { grid-template-columns: 1fr; }
  .tf-antri-data { grid-template-columns: 1fr; gap: 2px 0; }
  .tf-antri-data dt { margin-top: 6px; }
  .tf-bukti-pratinjau img, .tf-bukti-pratinjau.is-antri img { width: 100%; height: 150px; }
}

/* ================================================================ *
 * Judul blok tombol komunikasi (pelacakan & riwayat)
 * Menegaskan SIAPA yang dihubungi: Driver (dilihat pelanggan) atau
 * Pelanggan (dilihat driver) — sumber label ada di lib/kontak.js.
 * ================================================================ */
.mx-kontak-judul {
  margin: 14px 0 0; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-dark);
}
.mx-kontak-judul span { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); }
.kp-aksi { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 520px) {
  .mx-kontak-judul { font-size: 10.5px; margin-top: 12px; }
}

/* ================================================================ *
 * Radius order driver (10 km) + status lokasi + konfirmasi tiba
 * Permintaan pemilik (2026-11-01): driver hanya menerima order dalam
 * radius 10 km dari titik jemput, driver menekan "Saya sudah tiba",
 * pelanggan yang mengonfirmasi kedatangan.
 * ================================================================ */

.lokasi-baris {
  display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 12px; background: #f8f8fa; border: 1px solid var(--line);
  margin-top: 10px;
}
.lokasi-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); flex: none; padding-top: 2px;
}
.lokasi-status { font-size: 12.5px; line-height: 1.45; color: var(--ink); }
.lokasi-status.is-ok { color: var(--green); font-weight: 600; }
.lokasi-status.is-warn { color: var(--amber); font-weight: 600; }

/* tombol "Saya sudah tiba" pada kartu pelanggan di panel driver */
.kp-tiba {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45;
  border: 1px solid var(--line); background: #fbfbfc;
}
.kp-tiba.is-warn { background: var(--amber-soft); border-color: #f6d489; color: #7a4b09; }
.kp-tiba.is-ok { background: var(--green-soft); border-color: #bfe6cd; color: #0f6b34; }
.kp-tiba-aksi { margin-top: 10px; display: grid; gap: 6px; }

/* layar "mencari driver": info radius */
.mx-cari-radius {
  display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap;
  margin: 10px 0 12px; padding: 10px 12px; border-radius: 12px;
  background: #f8f8fa; border: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px; line-height: 1.45; color: var(--ink); text-align: left;
}
.mx-radius-badge {
  flex: none; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
}
.mx-cari-radius [data-cari-driver-info] { flex: 1 1 180px; min-width: 0; }
.mx-cari-radius [data-cari-driver-info].is-kosong { color: #b42318; font-weight: 600; }
.mx-cari-radius [data-cari-driver-info].is-ada { color: var(--green); font-weight: 600; }

/* kartu "Pencarian driver" di dashboard pelanggan */
.radius-pesan {
  border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: 12px; padding: 12px 14px; background: #fff; margin-top: 12px;
}
.radius-pesan + .radius-pesan { margin-top: 10px; }
.radius-pesan.is-kosong { border-left-color: var(--amber); background: #fffdf7; }
.radius-atas { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.radius-atas b { font-size: 13.5px; }

@media (max-width: 520px) {
  .lokasi-baris { flex-direction: column; gap: 4px; }
  .mx-cari-radius { font-size: 11.5px; }
}

/* ================================================================ *
 * Halaman LOGIN TUNGGAL (permintaan pemilik 2026-11-01)
 * Hanya: User · Password (dengan tombol mata) · Ingat Saya ·
 *        Lupa Password · tombol LOGIN. Tanpa kode akses/captcha/OTP.
 * ================================================================ */

body.page-login {
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(193, 39, 45, .10), transparent 58%),
    radial-gradient(90% 80% at 100% 100%, rgba(74, 12, 15, .10), transparent 60%),
    #eef1f7;
  min-height: 100vh;
}
body.page-login .wrap { max-width: none; padding: 0 16px; }

.login-tunggal {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 0;
}
.lt-kartu {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(24, 24, 27, .06);
  box-shadow: 0 22px 60px rgba(20, 8, 12, .12);
  padding: 30px 30px 32px;
}
.lt-merek { display: grid; justify-items: center; gap: 14px; margin-bottom: 22px; }
.lt-logo {
  width: 96px; height: 96px; object-fit: contain;
  border-radius: 18px; background: #fff; padding: 8px;
  box-shadow: 0 8px 22px rgba(20, 8, 12, .10);
}
.lt-logo-teks {
  font-size: 25px; font-weight: 800; letter-spacing: .04em; color: var(--brand-dark);
  padding: 14px 4px 4px;
}
.lt-logo-teks em { font-style: normal; color: var(--brand); }
.lt-pembatas {
  display: flex; align-items: center; gap: 12px; width: 100%;
  font-size: 15px; color: var(--muted);
}
.lt-pembatas::before, .lt-pembatas::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.lt-form { display: grid; gap: 16px; }
.lt-field { display: grid; gap: 7px; min-width: 0; }
.lt-field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.lt-field input {
  width: 100%; min-width: 0; padding: 12px 14px;
  border: 1px solid #e3e6ee; border-radius: 10px; background: #fff;
  font: inherit; font-size: 14px; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lt-field input::placeholder { color: #a7adbb; }
.lt-field input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(193, 39, 45, .12);
}

/* kolom sandi + tombol mata */
.lt-sandi { position: relative; display: flex; }
.lt-sandi input { padding-right: 46px; }
.lt-mata {
  position: absolute; top: 0; right: 0; height: 100%; width: 44px;
  display: grid; place-items: center; cursor: pointer;
  border: 0; border-left: 1px solid #e3e6ee; border-radius: 0 10px 10px 0;
  background: #fff; color: #8a90a0;
}
.lt-mata svg { width: 19px; height: 19px; }
.lt-mata:hover { color: var(--brand); }
.lt-mata.is-aktif { color: var(--brand); background: var(--brand-soft); }

/* baris Ingat Saya + Lupa Password */
.lt-baris {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-top: -2px;
}
.lt-ingat { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #545a68; cursor: pointer; }
.lt-ingat input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }
.lt-lupa { font-size: 13px; font-weight: 600; color: var(--brand-dark); }
.lt-lupa:hover { text-decoration: underline; }

.lt-tombol {
  width: 100%; margin-top: 4px; padding: 13px 16px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .06em;
  color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  box-shadow: 0 12px 26px rgba(193, 39, 45, .26);
  transition: transform .1s ease, box-shadow .15s ease, filter .15s ease;
}
.lt-tombol:hover { filter: brightness(1.05); box-shadow: 0 14px 30px rgba(193, 39, 45, .32); }
.lt-tombol:active { transform: translateY(1px); }

/* pesan flash di halaman polos */
body.page-polos .flash {
  max-width: 420px; margin: 20px auto 0; border-radius: 12px;
}

@media (max-width: 480px) {
  .lt-kartu { padding: 24px 20px 26px; border-radius: 14px; }
  .lt-logo { width: 82px; height: 82px; }
  .login-tunggal { padding: 20px 0; }
}
