html, body { margin: 0; height: 100%; font-family: system-ui, sans-serif; background: #f4f4f5; color: #18181b; }
#map { height: 55vh; }
#panel { height: 45vh; overflow-y: auto; padding: 16px; box-sizing: border-box; background: #fff;
  border-radius: 16px 16px 0 0; margin-top: -16px; position: relative; z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0,0,0,.1); }
h2 { margin: 0 0 12px; }
.hidden { display: none !important; }
input { width: 100%; box-sizing: border-box; padding: 12px; font-size: 17px; border: 1px solid #d4d4d8;
  border-radius: 10px; margin-bottom: 10px; }
button { width: 100%; padding: 13px; font-size: 16px; border: 0; border-radius: 10px; background: #facc15;
  color: #18181b; font-weight: 600; margin-bottom: 8px; }
button.secondary { background: #e4e4e7; }
button.danger { background: #fee2e2; color: #b91c1c; }
.row { display: flex; gap: 8px; }
.hint { font-size: 15px; color: #52525b; margin-bottom: 10px; }
#trip-info { font-weight: 600; margin: 6px 0 10px; }
.offer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px;
  border: 1px solid #e4e4e7; border-radius: 12px; margin-bottom: 8px; }
.offer small { color: #71717a; }
.offer .price { font-size: 20px; font-weight: 700; white-space: nowrap; }
.offer button { width: auto; margin: 0; padding: 10px 14px; }
.status { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
#message { color: #b91c1c; margin-top: 8px; min-height: 1em; }
.card { border: 1px solid #e4e4e7; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
#ride-box { border-color: #facc15; background: #fefce8; }
.row input { min-width: 0; }
a { color: #2563eb; }
.section-head {
  position: sticky; top: -16px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; margin: -16px -16px 8px; padding: 16px 16px 10px;
  border-bottom: 1px solid #e4e4e7;
}
.section-head h2 { margin: 0; }
.section-head button { width: auto; margin: 0; padding: 10px 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: #fefce8; border: 1px solid #fde68a; }
.stat b { font-size: 22px; }
.stat small { color: #71717a; }
h3 { margin: 12px 0 4px; }
.history-item { border-bottom: 1px solid #e4e4e7; padding: 10px 0; }
.history-item .route { margin: 2px 0; }
.history-item small { color: #71717a; }
.history-item .comment { font-style: italic; color: #52525b; margin-top: 2px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; margin: 6px 0; }
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.approved { background: #dcfce7; color: #166534; }
.badge.blocked { background: #fee2e2; color: #991b1b; }
.doc { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #e4e4e7; }
.doc small { color: #71717a; }
.doc .ok { color: #16a34a; }
.doc button { width: auto; margin: 0; padding: 8px 12px; flex: none; }
.ref-code { font-size: 28px; font-weight: 700; letter-spacing: 4px; text-align: center; padding: 10px;
  border: 2px dashed #facc15; border-radius: 12px; margin: 8px 0; user-select: all; }
.ref-item { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #e4e4e7; }
.ref-item small { color: #71717a; }
.ref-item small.done { color: #16a34a; }
.savings { color: #166534; font-size: 14px; margin-top: 2px; }
.bal-amount { font-size: 28px; font-weight: 700; margin: 4px 0; }
#bal-card.low { border-color: #fca5a5; background: #fef2f2; }
.bal-topup { background: #f4f4f5; border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.bal-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #e4e4e7; font-size: 14px; }
.bal-row .plus { color: #16a34a; white-space: nowrap; }
.bal-row .minus { color: #b91c1c; white-space: nowrap; }
.city-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; color: #52525b; }
.city-row button { width: auto; margin: 0; padding: 6px 10px; font-size: 13px; background: #f4f4f5; }
.topup-form { border-top: 1px solid #e4e4e7; margin-top: 8px; padding-top: 8px; }
.topup-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0;
  border-bottom: 1px solid #e4e4e7; font-size: 14px; }
.topup-row small { color: #71717a; }
.topup-row button { width: auto; margin: 0; padding: 6px 10px; font-size: 13px; flex: none; }
