:root {
  --g: #087C32;
  --g-dark: #05602A;
  --g-bright: #12B349;
  --g-light: #E7F6EC;
  --g-soft: #F1FAF4;
  --ink: #13201A;
  --muted: #56635C;
  --line: #E2E8E4;
  --bg: #F4F7F5;
  --white: #FFFFFF;
  --red: #C42B2B;
  --red-light: #FDECEC;
  --amber: #9A5B00;
  --amber-light: #FFF4DD;
  --blue: #1C4FC4;
  --blue-light: #E8EFFD;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 40, 25, .06), 0 4px 16px rgba(16, 40, 25, .06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--g); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 700; }
.right { text-align: right; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.lg { gap: 18px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s, transform .05s, box-shadow .15s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--g); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--g-dark); }
.btn-outline { background: #fff; color: var(--g); border-color: #BFDCC9; }
.btn-outline:hover:not(:disabled) { background: var(--g-soft); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(0,0,0,.04); }
.btn-light { background: var(--g-light); color: var(--g-dark); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger-outline { background: #fff; color: var(--red); border-color: #F0C2C2; }
.btn-white { background: #fff; color: var(--g-dark); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 54px; font-size: 16px; border-radius: 14px; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); cursor: pointer; color: var(--ink); flex-shrink: 0; }
.icon-btn:hover { background: var(--g-soft); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.field small { color: var(--muted); font-size: 12px; }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid #CFD8D3; background: #fff; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 96px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--g); box-shadow: 0 0 0 3px rgba(8, 124, 50, .15); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 42px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 380px) { .grid2 { grid-template-columns: 1fr; } }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.radio-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card:has(input:checked) { border-color: var(--g); background: var(--g-soft); box-shadow: 0 0 0 1px var(--g) inset; }
.radio-card:has(input:focus-visible) { outline: 2px solid var(--g); outline-offset: 2px; }
.radio-card strong { font-size: 14px; }
.radio-card span { font-size: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13px; line-height: 1; white-space: nowrap; cursor: pointer; user-select: none; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--g); }
.chip.active { background: var(--g); border-color: var(--g); color: #fff; }

/* ---------- Cards & lists ---------- */
.card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card-title { font-size: 16px; font-weight: 800; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 4px 2px 0; }
.section-title h3 { font-size: 17px; font-weight: 800; }
.list { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #EEF2EF; color: inherit; }
.list-item:last-child { border-bottom: none; }
a.list-item:hover, button.list-item:hover { background: var(--g-soft); }
button.list-item { width: 100%; border: none; border-bottom: 1px solid #EEF2EF; background: #fff; text-align: left; cursor: pointer; }
.avatar { width: 44px; height: 44px; border-radius: 14px; background: var(--g-light); color: var(--g-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }
.thumb { width: 84px; height: 84px; border-radius: 14px; background: var(--g-light); object-fit: cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--g); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .empty-icon { width: 64px; height: 64px; border-radius: 32px; background: var(--g-light); color: var(--g); display: flex; align-items: center; justify-content: center; }
.empty strong { color: var(--ink); font-size: 16px; }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.kv > span:first-child { color: var(--muted); }
.kv.total { font-size: 16px; font-weight: 800; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge.green { background: var(--g-light); color: var(--g-dark); }
.badge.amber { background: var(--amber-light); color: var(--amber); }
.badge.red { background: var(--red-light); color: var(--red); }
.badge.blue { background: var(--blue-light); color: var(--blue); }
.badge.gray { background: #EEF1EF; color: #46524B; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert.amber { background: var(--amber-light); color: #6E4100; }
.alert.green { background: var(--g-light); color: var(--g-dark); }
.alert.blue { background: var(--blue-light); color: #173F9E; }
.alert.red { background: var(--red-light); color: #8F1D1D; }

/* ---------- App shell (pelanggan / driver / resto) ---------- */
.shell { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: 92px; }
@media (min-width: 520px) { body.app-mode { background: #E4ECE7; } .shell { box-shadow: 0 0 40px rgba(0,0,0,.06); } }
.page { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(244, 247, 245, .92); backdrop-filter: blur(10px); padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid transparent; }
.topbar h1 { font-size: 18px; font-weight: 800; flex: 1; min-width: 0; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); z-index: 30; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted); border-radius: 12px; position: relative; }
.bottom-nav a.active { color: var(--g); font-weight: 800; }
.bottom-nav .dot { position: absolute; top: 2px; right: calc(50% - 20px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 800; }

.hello { display: flex; align-items: center; gap: 12px; }
.hello img { width: 44px; height: 44px; border-radius: 12px; }
.balance-card { background: var(--g); color: #fff; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.balance-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 28px solid rgba(255,255,255,.07); }
.balance-card .label { font-size: 13px; color: #CDEBD7; font-weight: 600; }
.balance-card .amount { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.balance-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; z-index: 1; }
.balance-actions a, .balance-actions button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; font-size: 12px; font-weight: 700; border: none; cursor: pointer; }
.balance-actions a:hover, .balance-actions button:hover { background: rgba(255,255,255,.2); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.service { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink); text-align: center; }
.service .ic { width: 62px; height: 62px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--g); transition: transform .15s; }
.service:hover .ic { transform: translateY(-2px); }
.promo { background: var(--g-dark); color: #fff; border-radius: 18px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.promo .ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.promo strong { display: block; font-size: 15px; }
.promo span { font-size: 12px; color: #CDEBD7; }

.resto-card { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: inherit; }
.resto-card:hover { box-shadow: 0 0 0 2px var(--g-light), var(--shadow); }
.resto-card.closed { opacity: .65; }
.resto-hero { height: 150px; background: var(--g-light) center/cover no-repeat; border-radius: 0 0 24px 24px; margin: -1px 0 0; }
.menu-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #EEF2EF; }
.menu-item:last-child { border-bottom: none; }
.qty { display: inline-flex; align-items: center; gap: 10px; }
.qty button { width: 34px; height: 34px; border-radius: 17px; border: 1.5px solid var(--g); background: #fff; color: var(--g); font-weight: 800; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty button.plus { background: var(--g); color: #fff; }
.qty span { min-width: 18px; text-align: center; font-weight: 800; }
.cart-bar { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 448px; z-index: 25; }
.cart-bar .btn { justify-content: space-between; box-shadow: 0 8px 24px rgba(8, 124, 50, .35); }
.sticky-action { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 448px; z-index: 25; }

/* ---------- Map ---------- */
.map { height: 260px; border-radius: var(--radius); overflow: hidden; background: #E6ECE8; z-index: 1; }
.map-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.point { display: flex; gap: 12px; align-items: flex-start; }
.point .pin { width: 14px; height: 14px; border-radius: 7px; margin-top: 17px; flex-shrink: 0; }
.pin.from { border: 4px solid var(--g); background: #fff; }
.pin.to { background: var(--red); }
.leaflet-container { font-family: var(--font); }

/* ---------- Order status ---------- */
.status-hero { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.status-hero .big { font-size: 19px; font-weight: 800; }
.steps { display: flex; gap: 6px; }
.steps span { flex: 1; height: 6px; border-radius: 3px; background: #E2E8E4; }
.steps span.done { background: var(--g); }
.steps span.now { background: var(--g-bright); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline .t { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.timeline .t::before { content: ''; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline .t:last-child::before { display: none; }
.timeline .t i { width: 14px; height: 14px; border-radius: 7px; background: var(--g); margin-top: 3px; flex-shrink: 0; }
.searching { display: flex; align-items: center; gap: 14px; }
.radar { width: 48px; height: 48px; border-radius: 24px; background: var(--g-light); position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--g); }
.radar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--g-bright); animation: ping 1.6s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.order-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; }
.order-card:hover { box-shadow: 0 0 0 2px var(--g-light), var(--shadow); }
.type-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--g-light); color: var(--g); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.route { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.route div { display: flex; gap: 10px; align-items: flex-start; }
.route .pin { margin-top: 4px; width: 12px; height: 12px; border-radius: 6px; flex-shrink: 0; }
.route .pin.from { border-width: 3px; }
.stars { display: flex; gap: 6px; }
.stars button { background: none; border: none; cursor: pointer; padding: 2px; color: #D0D7D3; }
.stars button.on { color: #E8A200; }
.stars button.on svg, .stars span svg { fill: currentColor; }

/* ---------- Driver ---------- */
.online-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.online-card.on { background: var(--g); color: #fff; }
.online-card.on .muted { color: #CDEBD7; }
.switch { position: relative; display: inline-block; vertical-align: middle; width: 56px; height: 32px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 16px; background: #C9D3CE; cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 26px; height: 26px; left: 3px; top: 3px; border-radius: 13px; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: #34C46A; }
.switch input:checked + span::before { transform: translateX(24px); }
.switch input:focus-visible + span { outline: 2px solid var(--g-dark); outline-offset: 2px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.stat .v { font-size: 20px; font-weight: 800; }
.stat .l { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Auth & landing ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: #fff; }
@media (min-width: 900px) { .auth { grid-template-columns: 1.05fr 1fr; } }
.auth-side { display: none; background: var(--g); color: #fff; padding: 48px; flex-direction: column; justify-content: space-between; gap: 32px; position: sticky; top: 0; height: 100vh; }
@media (min-width: 900px) { .auth-side { display: flex; } }
.auth-side img { width: 260px; }
.auth-side h2 { font-size: 34px; font-weight: 800; max-width: 440px; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-side li { display: flex; gap: 10px; align-items: center; color: #DFF3E6; }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 32px 20px; max-width: 460px; width: 100%; margin: 0 auto; gap: 22px; }
.auth-main .brand { width: 150px; }
.auth-main h1 { font-size: 26px; font-weight: 800; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: #EEF2EF; border-radius: 14px; }
.tabs button, .tabs a { min-height: 40px; border-radius: 10px; border: none; background: transparent; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.tabs .active { background: #fff; color: var(--g-dark); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.pass-wrap { position: relative; }
.pass-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); cursor: pointer; padding: 8px; font-size: 12px; font-weight: 700; }

.landing { background: #fff; }
.l-nav { max-width: 1160px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.l-nav img { height: 44px; width: auto; }
.l-hero { background: var(--g); color: #fff; }
.l-hero-in { max-width: 1160px; margin: 0 auto; padding: 48px 20px 56px; display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { .l-hero-in { grid-template-columns: 1.1fr .9fr; padding: 72px 20px 80px; } }
.l-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; }
.l-hero p { font-size: 17px; color: #DCF2E3; margin-top: 14px; max-width: 520px; }
.l-hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.l-hero .logo-big { width: min(380px, 80%); margin: 0 auto; }
.l-sec { max-width: 1160px; margin: 0 auto; padding: 56px 20px; }
.l-sec h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.l-sec > p { color: var(--muted); margin-top: 8px; max-width: 620px; }
.l-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 28px; }
.l-card { border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.l-card .ic { width: 54px; height: 54px; border-radius: 16px; background: var(--g-light); color: var(--g); display: flex; align-items: center; justify-content: center; }
.l-card h3 { font-size: 18px; font-weight: 800; }
.l-card p { color: var(--muted); font-size: 14px; }
.l-join { background: var(--g-soft); }
.l-join .l-card { background: #fff; }
.l-steps { counter-reset: s; }
.l-steps .l-card h3::before { counter-increment: s; content: counter(s); display: inline-flex; width: 30px; height: 30px; border-radius: 15px; background: var(--g); color: #fff; align-items: center; justify-content: center; font-size: 14px; margin-right: 10px; }
.l-foot { border-top: 1px solid var(--line); padding: 28px 20px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
@media (min-width: 960px) { .admin { grid-template-columns: 250px minmax(0, 1fr); } }
.side { background: #0E2418; color: #CFE3D6; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 960px) { .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; color: #fff; font-weight: 800; font-size: 18px; }
.side .brand img { width: 38px; height: 38px; border-radius: 10px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 959px) {
  .side { padding: 10px 12px; }
  .side .brand { padding: 4px 4px 8px; }
  .side nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .side nav a { white-space: nowrap; }
  .side .side-foot { display: none; }
}
.side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #CFE3D6; font-weight: 600; font-size: 14px; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a.active { background: var(--g); color: #fff; }
.side nav .count { margin-left: auto; background: #E8A200; color: #2A1A00; border-radius: 10px; font-size: 11px; font-weight: 800; padding: 1px 7px; }
.side-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.main { padding: 24px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 600px) { .main { padding: 16px; } }
.main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.main-head h1 { font-size: 24px; font-weight: 800; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpi { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.kpi .l { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi .v { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.kpi.accent { background: var(--g); color: #fff; }
.kpi.accent .l { color: #CDEBD7; }
.a-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1100px) { .a-grid { grid-template-columns: 1.4fr 1fr; } }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .b i { width: 100%; max-width: 44px; background: var(--g); border-radius: 8px 8px 3px 3px; min-height: 3px; }
.bars .b span { font-size: 11px; color: var(--muted); font-weight: 600; }
.bars .b em { font-style: normal; font-size: 12px; font-weight: 800; }
.table-wrap { background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 12px 16px; background: #F8FAF9; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid #EEF2EF; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--g-soft); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .input { max-width: 320px; min-height: 42px; }
.proof { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; cursor: zoom-in; border: 1px solid var(--line); background: #F0F3F1; }
.qris-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qris-box img { width: 100%; max-width: 300px; border-radius: 12px; }

/* ---------- Toast & modal ---------- */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 420px; pointer-events: none; }
.toast { background: #13201A; color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: tin .2s ease-out; display: flex; gap: 10px; align-items: center; }
.toast.err { background: var(--red); }
.toast.ok { background: var(--g-dark); }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }
.modal-bg { position: fixed; inset: 0; background: rgba(10, 24, 16, .5); z-index: 900; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@media (min-width: 600px) { .modal-bg { align-items: center; } }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; width: 100%; max-width: 460px; border-radius: 22px 22px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; max-height: 92vh; overflow-y: auto; }
@media (min-width: 600px) { .modal { border-radius: 22px; } }
.modal h3 { font-size: 19px; font-weight: 800; }
.modal .actions { display: flex; gap: 10px; }
.modal .actions .btn { flex: 1; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; }
.lightbox { align-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--g-light); border-top-color: var(--g); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; justify-content: center; padding: 48px; }
:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; }

/* ---------- GPS wajib (driver) ---------- */
#gps-gate { position: fixed; inset: 0; z-index: 950; background: var(--g-dark); color: #fff; display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.gps-card { max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.gps-card h2 { font-size: 22px; font-weight: 800; }
.gps-card p { color: #D7EFDF; }
.gps-card ol { text-align: left; margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: #E6F5EB; font-size: 14px; align-self: stretch; }
.gps-ic { width: 84px; height: 84px; border-radius: 42px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; position: relative; }
.gps-ic::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); animation: ping 1.8s ease-out infinite; }

/* ---------- Chat ---------- */
.shell.no-nav { padding-bottom: 0; }
.chat-top { background: #fff; border-bottom: 1px solid var(--line); }
.chat-list { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 150px; }
.chat-list.admin { padding: 0; max-height: 420px; overflow-y: auto; }
.bubble { max-width: 80%; padding: 9px 12px 6px; border-radius: 16px; font-size: 15px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.05); word-wrap: break-word; white-space: pre-wrap; }
.bubble .time { font-size: 11px; opacity: .7; text-align: right; margin-top: 2px; }
.bubble.me { align-self: flex-end; background: var(--g); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.chat-list.admin .bubble.them { background: #F1F4F2; }
.chat-list.admin .bubble.drv { align-self: flex-end; background: var(--g-light); }
.chat-who { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.chat-sys { align-self: center; font-size: 12px; color: var(--muted); background: #E9EEEB; padding: 5px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; text-align: center; }
.composer { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--line); padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; z-index: 30; }
.composer .quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.composer .quick .chip { white-space: nowrap; min-height: 34px; font-size: 12px; }
.ubadge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Telepon ---------- */
#call-ui { position: fixed; inset: 0; z-index: 1100; background: #0B2B19; color: #fff; display: flex; }
#call-ui .call-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 48px 24px calc(48px + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto; }
.call-top { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-top: 24px; }
.call-avatar { width: 112px; height: 112px; border-radius: 56px; background: var(--g); display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; position: relative; margin-top: 18px; }
.call-avatar.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255,255,255,.45); animation: ping 1.6s ease-out infinite; }
.call-name { font-size: 26px; font-weight: 800; }
.call-state { font-size: 16px; color: #BFE3CC; }
.call-actions { display: flex; gap: 48px; }
.call-actions:has(.call-btn:nth-child(3)) { gap: 28px; }
.call-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: #CFE8D8; }
.call-btn button { width: 72px; height: 72px; border-radius: 36px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; }
.call-btn button.red { background: #D93636; }
.call-btn button.green { background: #22B455; }
.call-btn button.light { background: rgba(255,255,255,.16); }
.call-btn button.light.on { background: #fff; color: #0B2B19; }

/* ---------- Geser untuk konfirmasi ---------- */
.swipe { position: relative; height: 60px; border-radius: 30px; background: var(--g-light); overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.swipe:focus-visible { outline: 3px solid var(--g); outline-offset: 2px; }
.swipe-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 64px; background: var(--g); border-radius: 30px; }
.swipe-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 56px; padding-right: 12px; font-weight: 800; font-size: 15px; color: var(--g-dark); pointer-events: none; text-align: center; }
.swipe-knob { position: absolute; left: 4px; top: 4px; width: 52px; height: 52px; border-radius: 26px; background: #fff; color: var(--g); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: grab; touch-action: none; z-index: 2; }
.swipe.dragging .swipe-knob { cursor: grabbing; }
.swipe.done .swipe-label { color: #fff; padding-left: 12px; padding-right: 64px; }
.swipe.finish { background: #FFF1DA; }
.swipe.finish .swipe-fill { background: var(--g); }
.swipe.finish .swipe-label { color: #7A4A00; }
.swipe.disabled { background: #ECEFED; opacity: .7; }
.swipe.disabled .swipe-fill { background: #C9D3CE; }
.swipe.disabled .swipe-label { color: var(--muted); }
.swipe.disabled .swipe-knob { color: #A3AEA8; cursor: not-allowed; }
.confirm-card { border: 2px solid var(--g); }
.deposit-card { border: 2px solid #F0C36D; background: #FFFBF1; }

/* ---------- Gelembung chat mengambang ---------- */
#chat-fab { position: fixed; right: max(16px, calc(50% - 240px + 16px)); bottom: 96px; z-index: 40; width: 60px; height: 60px; border-radius: 30px; border: 3px solid #fff; background: var(--g); color: #fff; box-shadow: 0 6px 20px rgba(8, 60, 30, .35); cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; animation: fabIn .25s ease-out; }
#chat-fab.raised { bottom: 160px; }
#chat-fab .fab-av { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
#chat-fab .fab-av img { width: 100%; height: 100%; object-fit: cover; }
#chat-fab .fab-ic { position: absolute; left: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 13px; background: #fff; color: var(--g); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
#chat-fab .fab-badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
#chat-fab.has-unread { animation: fabIn .25s ease-out, fabPulse 1.6s ease-in-out infinite .3s; }
@keyframes fabIn { from { transform: scale(.4); opacity: 0; } }
@keyframes fabPulse { 50% { box-shadow: 0 6px 20px rgba(8, 60, 30, .35), 0 0 0 10px rgba(18, 179, 73, .18); } }
#chat-preview { position: fixed; right: max(86px, calc(50% - 240px + 86px)); bottom: 104px; z-index: 41; max-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; padding: 10px 12px; box-shadow: 0 6px 20px rgba(0,0,0,.15); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font-size: 13px; animation: fabIn .2s ease-out; }
#chat-preview span { color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
body.cp-open { overflow: hidden; }
#chat-panel { position: fixed; inset: 0; z-index: 960; display: flex; align-items: flex-end; justify-content: center; }
#chat-panel .cp-backdrop { position: absolute; inset: 0; background: rgba(10, 24, 16, .45); animation: fade .15s; }
#chat-panel .cp-box { position: relative; width: 100%; max-width: 480px; height: min(86vh, 720px); background: var(--bg); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: cpUp .22s ease-out; box-shadow: 0 -8px 30px rgba(0,0,0,.2); }
@media (min-width: 700px) { #chat-panel { justify-content: flex-end; align-items: flex-end; padding: 0 24px 24px; } #chat-panel .cp-box { width: 400px; height: 600px; border-radius: 22px; } }
@keyframes cpUp { from { transform: translateY(40px); opacity: 0; } }
.cp-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.cp-msgs { flex: 1; overflow-y: auto; padding: 14px !important; }
.cp-foot { background: #fff; border-top: 1px solid var(--line); padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.cp-foot .quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.cp-foot .quick .chip { white-space: nowrap; min-height: 34px; font-size: 12px; }

/* ---------- Strip konfirmasi pesanan ---------- */
.confirm-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: -8px; padding: 10px 12px 10px 14px; background: var(--g-light); border: 1.5px solid #A9D9B9; border-radius: 0 0 16px 16px; font-size: 13px; font-weight: 700; color: var(--g-dark); }
.confirm-strip span { display: inline-flex; align-items: center; gap: 6px; }
.confirm-strip.big { margin-top: 0; border-radius: 16px; padding: 12px 14px 12px 16px; font-size: 15px; }

/* ---------- Pin peta berlabel ---------- */
.gpin-wrap { background: none; border: none; }
.gpin { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% + 7px)); display: flex; flex-direction: column; align-items: center; pointer-events: auto; cursor: pointer; }
.gpin span { background: var(--c); color: #fff; font: 800 11px/1 var(--font); letter-spacing: .03em; padding: 5px 9px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.3); border: 2px solid #fff; }
.gpin span::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); top: 22px; border: 5px solid transparent; border-top-color: var(--c); }
.gpin i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 3px solid #fff; margin-top: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.leaflet-marker-draggable .gpin span::before { content: '⇕ '; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend b { color: var(--ink); font-size: 11px; letter-spacing: .03em; }
.dot-c { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 2px; vertical-align: -1px; }
.chip.active .dot-c { box-shadow: 0 0 0 2px #fff; }
.gps-drop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.locpick { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Kendaraan driver bergerak ---------- */
.vpin { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: auto; }
.vpin .vbody { width: 42px; height: 42px; border-radius: 50%; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.35); transition: transform .3s; position: relative; }
.vpin .vbody.flip svg { transform: scaleX(-1); }
.vpin .vbody::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--c); opacity: .5; animation: ping 2s ease-out infinite; }
.vpin span { background: var(--c); color: #fff; font: 800 10px/1 var(--font); letter-spacing: .04em; padding: 3px 7px; border-radius: 999px; border: 2px solid #fff; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
select.input, .field select { appearance: auto; }

/* ---------- Unggah foto & dokumen (komponen bermerek) ---------- */
.photo-pick { position: relative; display: flex; align-items: center; justify-content: center; min-height: 150px; border: 2px dashed #A9CDB7; border-radius: 16px; background: linear-gradient(180deg, #FAFDFB, #F1FAF4); cursor: pointer; overflow: hidden; text-align: center; transition: border-color .15s, background .15s, box-shadow .15s; }
.photo-pick:hover, .photo-pick.drag { border-color: var(--g); background: var(--g-light); box-shadow: 0 0 0 4px rgba(8,124,50,.08); }
.photo-pick:focus-within { outline: 2px solid var(--g); outline-offset: 2px; }
.photo-pick.has { border-style: solid; border-color: var(--g); background: #fff; }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.photo-pick img { width: 100%; height: 170px; object-fit: cover; display: block; }
.qris-pick .photo-pick img { height: 260px; object-fit: contain; background: #fff; padding: 8px; }
.pp-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 18px 14px; color: var(--g-dark); }
.pp-ic { width: 46px; height: 46px; border-radius: 23px; background: var(--g); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; box-shadow: 0 4px 12px rgba(8,124,50,.25); font-style: normal; }
.pp-empty b { font-size: 14px; color: var(--ink); }
.pp-empty small { color: var(--muted); font-size: 12px; }
.pp-empty em { font-style: normal; font-size: 11px; color: #8A9690; margin-top: 2px; }
.pp-change { position: absolute; right: 8px; bottom: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: rgba(19,32,26,.78); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(4px); }
.photo-field > span:empty { display: none; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.doc-thumb { width: 100%; max-width: 160px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; background: #F0F3F1; margin-top: 4px; }
.doc-img { width: 100%; height: 110px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.doc-ok { display: flex; align-items: center; gap: 6px; padding: 12px; border-radius: 12px; background: var(--g-light); color: var(--g-dark); font-size: 13px; font-weight: 700; }
.resto-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow); flex-shrink: 0; }

.call-btn button.light.on { background: #fff; color: #0B2B19; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }

/* ---------- Banner promo ---------- */
.banners { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: var(--g-light); }
.b-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.b-track::-webkit-scrollbar { display: none; }
.b-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 3 / 1; }
.b-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-slide a { display: block; height: 100%; }
.b-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.b-dots button { width: 7px; height: 7px; border-radius: 4px; border: none; padding: 0; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.15); cursor: pointer; transition: width .2s, background .2s; }
.b-dots button.on { width: 20px; background: #fff; }
.size-hint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--g-light); color: var(--g-dark); font-size: 13px; }
.size-hint svg { flex-shrink: 0; margin-top: 2px; }
.size-hint span { color: var(--muted); font-size: 12px; }
.phone-prev { max-width: 380px; margin-top: 10px; }
.b-thumb { width: 240px; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
[data-mv="up"] svg { transform: rotate(90deg); } [data-mv="down"] svg { transform: rotate(90deg); }
/* ---------- Voucher ---------- */
.vbox { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; border: 1.5px dashed #A9CDB7; background: #FAFDFB; }
.vbox .field > span { display: flex; align-items: center; gap: 6px; color: var(--g-dark); }
.vrow { display: flex; gap: 8px; }
.vrow .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.v-applied { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--g-light); color: var(--g-dark); font-size: 13px; }
.v-applied span { flex: 1; }
.v-applied button { border: none; background: none; color: var(--red); font-weight: 700; cursor: pointer; font-size: 13px; }
.v-avail { gap: 6px; }
.v-chip { display: inline-flex; align-items: center; gap: 5px; border-style: dashed; border-color: #8FC7A3; color: var(--g-dark); background: #fff; min-height: 34px; font-size: 12px; }
.v-chip small { color: var(--muted); font-weight: 600; }
.v-code { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; color: var(--g-dark); }

/* v1.14: chip layanan voucher */
.svc-chip { min-height: 42px; padding: 0 14px 0 12px; color: var(--ink); }
.svc-chip svg { color: var(--g); }
.svc-chip .ck { display: none; width: 18px; height: 18px; border-radius: 9px; background: #fff; color: var(--g); align-items: center; justify-content: center; margin-left: 2px; }
.svc-chip.active svg { color: #fff; }
.svc-chip.active .ck { display: inline-flex; }
.svc-chip.active .ck svg { color: var(--g); }
.field .chips { margin-top: 2px; }

/* v1.14: penilaian pelanggan */
.rv-stars { display: inline-flex; gap: 1px; color: #D0D7D3; flex-shrink: 0; }
.rv-stars .on { color: #E8A200; }
.rv-stars svg { fill: currentColor; }
.rv-top { display: grid; grid-template-columns: 200px 1fr 260px; gap: 14px; }
.rv-sum { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.rv-big { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.rv-dist { display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.rv-bar { display: grid; grid-template-columns: 40px 1fr 32px; align-items: center; gap: 10px; }
.rv-bar > span:first-child { display: inline-flex; align-items: center; gap: 3px; }
.rv-bar > span:first-child svg { color: #E8A200; fill: currentColor; }
.rv-bar > span:last-child { text-align: right; }
.rv-track { height: 8px; border-radius: 4px; background: #EEF1EF; overflow: hidden; }
.rv-track i { display: block; height: 100%; background: var(--g); border-radius: 4px; }
.rv-track i.mid { background: #E8A200; }
.rv-track i.bad { background: var(--red); }
.rv-pin-card { display: flex; align-items: center; gap: 14px; color: var(--g-dark); background: var(--g-light); }
.rv-pin-card.warn { background: var(--red-light); color: var(--red); }
.rv-perfs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rv-perf { display: flex; flex-direction: column; gap: 8px; }
.rv-perf-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rv-avg { display: inline-flex; align-items: center; gap: 3px; min-width: 52px; justify-content: center; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.rv-avg svg { fill: currentColor; }
.rv-avg.good { background: var(--g-light); color: var(--g-dark); }
.rv-avg.mid { background: var(--amber-light); color: var(--amber); }
.rv-avg.bad { background: var(--red-light); color: var(--red); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rv-item { display: flex; flex-direction: column; gap: 10px; border: 1px solid transparent; }
.rv-item.pinned { border-color: #F3B4B4; background: #FFF8F8; }
.rv-flag { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; }
.rv-head { display: flex; align-items: center; gap: 12px; }
.rv-ava { width: 40px; height: 40px; border-radius: 20px; background: var(--g-light); color: var(--g-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.rv-text { margin: 0; font-size: 15px; line-height: 1.5; }
.rv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rv-meta a.badge { text-decoration: none; }
@media (max-width: 900px) { .rv-top, .rv-perfs { grid-template-columns: 1fr; } }
[data-svc] .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
[data-svc] .svc-chip { justify-content: flex-start; border-radius: 12px; padding: 0 12px; }
[data-svc] .svc-chip .ck { margin-left: auto; }
[data-svc] .svc-chip:not(.active) .ck { display: inline-flex; background: transparent; border: 1.5px solid var(--line); }
[data-svc] .svc-chip:not(.active) .ck svg { visibility: hidden; }
.side { min-width: 0; }
.rv-top > *, .rv-perfs > * { min-width: 0; }
@media (max-width: 600px) { #rvq { max-width: none !important; width: 100%; } .rv-head { flex-wrap: wrap; } }
