/* =====================================================================
   NOVA Admin Console — shared stylesheet
   ===================================================================== */
:root {
  --red: #e11d2e;
  --red-deep: #b31328;
  --red-soft: rgba(225, 29, 46, 0.08);

  --ink: #131316;
  --muted: #6b7280;
  --line: #e8e8ec;
  --bg: #f5f6f8;
  --card: #ffffff;
  --chip-bg: #f4f4f6;

  --green: #16a34a;
  --amber: #d97706;
  --blue: #2563eb;
  --slate: #64748b;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-body);

  --radius: 14px;
  --radius-sm: 10px;
  --sidebar-w: 250px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; }

/* ================= Sidebar ================= */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--card);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  z-index: 40;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 8px 18px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.brand .mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 10px 22px -10px rgba(225, 29, 46, 0.9);
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}
.nav-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 14px 10px 8px;
}
.nav { display: grid; gap: 3px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #4b5563;
  transition: background 0.14s, color 0.14s;
}
.nav a svg { flex: none; opacity: 0.85; }
.nav a:hover { background: var(--chip-bg); color: var(--ink); }
.nav a.active { background: var(--red-soft); color: var(--red); }
.nav a.active svg { opacity: 1; }
.nav a .badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  padding: 1px 7px;
}
.sidebar-foot { margin-top: auto; padding-top: 14px; }
.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--chip-bg);
}
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}
.avatar.alt { background: linear-gradient(135deg, #475569, #1e293b); }
.side-user .who { line-height: 1.25; overflow: hidden; }
.side-user .who b { display: block; font-size: 13px; }
.side-user .who span { font-size: 11.5px; color: var(--muted); }
.side-user .out {
  margin-left: auto;
  color: var(--muted);
  display: grid; place-items: center;
  padding: 6px;
  border-radius: 8px;
}
.side-user .out:hover { color: var(--red); background: #fff; }

/* ================= Main + Topbar ================= */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 38px; height: 38px;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
}
.search { position: relative; flex: 1; max-width: 380px; }
.search input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--chip-bg);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.search input:focus { outline: none; background: #fff; border-color: var(--red); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  display: grid; place-items: center;
  cursor: pointer;
  color: #4b5563;
  transition: color 0.15s, border-color 0.15s;
}
.icon-btn:hover { color: var(--red); border-color: #f3c2c7; }
.icon-btn .dot {
  position: absolute;
  top: 9px; right: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #fff;
}

.content { padding: 24px; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  font-weight: 800;
}
.page-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-display);
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 12px 24px -12px rgba(225, 29, 46, 0.8);
  transition: filter 0.15s, transform 0.08s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.sm { padding: 8px 12px; font-size: 12.5px; border-radius: 9px; }
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 11px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.ghost:hover { border-color: var(--red); color: var(--red); }
.ghost.sm { padding: 7px 11px; font-size: 12.5px; border-radius: 9px; }
.ghost.danger:hover { border-color: var(--red); color: var(--red); }
.ghost.ok:hover { border-color: var(--green); color: var(--green); }

/* ================= KPI cards ================= */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.kpi .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kpi .ic {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--red-soft); color: var(--red);
}
.kpi .delta { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.delta.up { color: var(--green); background: rgba(22, 163, 74, 0.10); }
.delta.down { color: var(--red); background: var(--red-soft); }
.delta.flat { color: var(--slate); background: var(--chip-bg); }
.kpi .value {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi .label { color: var(--muted); font-size: 12.5px; margin-top: 7px; }

/* ================= Grid + card ================= */
.grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: start; }
.grid.even { grid-template-columns: 1fr 1fr; }
.grid.thirds { grid-template-columns: repeat(3, 1fr); }
.grid.stretch { align-items: stretch; }
.col { display: grid; gap: 20px; }
.stack { display: grid; gap: 20px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.soft { background: #fafafb; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.card-head h3 {
  font-family: var(--font-display);
  font-size: 15.5px; letter-spacing: -0.01em; margin: 0; font-weight: 700;
}
.card-head .sub { font-size: 12px; color: var(--muted); }
.card-head.col { display: block; }
.card-head.col h3 { margin-bottom: 7px; }
.card-note {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
.card-head .card-note, .card-head.col .card-note { margin: 7px 0 0; }
.card-head.col .card-note:last-child { margin-bottom: 0; }
.step-ex { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ================= Segmented + tabs ================= */
.seg { display: inline-flex; background: var(--chip-bg); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: transparent; font-size: 12px; font-weight: 600;
  color: var(--muted); padding: 5px 11px; border-radius: 7px; cursor: pointer;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--red); border-bottom-color: var(--red); }
.tabs button .count {
  font-size: 11px; font-weight: 700; margin-left: 6px;
  background: var(--chip-bg); color: var(--muted);
  border-radius: 999px; padding: 1px 7px;
}
.tabs button.on .count { background: var(--red-soft); color: var(--red); }

/* ================= Toolbar ================= */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar .grow { flex: 1; }
.toolbar .search { max-width: 300px; }

/* ================= Chart ================= */
.chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; height: 190px; padding-top: 8px; }
.bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--red) 0%, #f2686f 100%);
  opacity: 0.92; transition: opacity 0.15s, transform 0.15s;
  animation: grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: bottom;
}
.bar-wrap:hover .bar { opacity: 1; }
.bar.ghost { background: var(--chip-bg); }
.bar.alt { background: linear-gradient(180deg, #475569, #94a3b8); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bar-wrap span { font-size: 11px; color: var(--muted); font-weight: 600; }

.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--red); }
.legend i.alt { background: #94a3b8; }

/* ================= Table ================= */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: #9ca3af; padding: 0 12px 11px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { padding: 13px 12px; font-size: 13.5px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafafb; }
td.money { font-weight: 700; font-variant-numeric: tabular-nums; }
td.actions { text-align: right; white-space: nowrap; }
.who-cell { display: flex; align-items: center; gap: 10px; }
.who-cell .avatar { width: 30px; height: 30px; font-size: 11px; }
.who-cell .st { line-height: 1.35; }
.who-cell .st small { display: block; color: var(--muted); font-size: 11.5px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* chips / status */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 10px;
  border-radius: 999px; white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.preparing { color: var(--amber); background: rgba(217, 119, 6, 0.12); }
.chip.delivering { color: var(--blue); background: rgba(37, 99, 235, 0.12); }
.chip.done { color: var(--green); background: rgba(22, 163, 74, 0.12); }
.chip.cancelled { color: #6b7280; background: var(--chip-bg); }
.chip.pending { color: var(--amber); background: rgba(217, 119, 6, 0.12); }
.chip.active { color: var(--green); background: rgba(22, 163, 74, 0.12); }
.chip.suspended { color: var(--red); background: var(--red-soft); }
.chip.offline { color: #6b7280; background: var(--chip-bg); }
.chip.plain { color: var(--muted); background: var(--chip-bg); }
.chip.plain::before { display: none; }

/* ================= Lists ================= */
.store-row, .rider-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.store-row:last-child, .rider-row:last-child { border-bottom: 0; padding-bottom: 0; }
.store-row .idx {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--chip-bg); font-size: 12px; font-weight: 700; color: var(--muted); flex: none;
}
.store-row .meta, .rider-row .meta { min-width: 0; }
.store-row .meta b, .rider-row .meta b { display: block; font-size: 13.5px; }
.store-row .meta small, .rider-row .meta small { color: var(--muted); font-size: 11.5px; }
.store-row .amt { margin-left: auto; font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.rider-row .avatar { width: 32px; height: 32px; font-size: 11px; }
.presence { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.presence i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.presence.online i { background: var(--green); }
.presence.busy i { background: var(--amber); }

.band { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.band:last-child { border-bottom: 0; }
.band span { color: var(--muted); }
.band b { font-variant-numeric: tabular-nums; }

/* ================= Forms ================= */
.form-grid { display: grid; gap: 18px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.four { grid-template-columns: repeat(4, 1fr); }
.field2 label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 7px; }
.field2 .hint { font-size: 11.5px; color: var(--muted); margin-top: 7px; }
.input, select.input {
  width: 100%; padding: 10px 12px; font-size: 13.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.16); }
.input-group { display: flex; align-items: center; }
.input-group .prefix {
  padding: 10px 12px; font-size: 13.5px; font-weight: 700; color: var(--muted);
  background: var(--chip-bg); border: 1px solid var(--line); border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.input-group .input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* toggle switch */
.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span, .switch .track {
  width: 40px; height: 23px; border-radius: 999px; background: #d1d5db; transition: background 0.18s; flex: none; position: relative; display: inline-block;
}
.switch span::after, .switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 17px; height: 17px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.18s;
}
.switch input:checked + span, .switch input:checked + .track { background: var(--red); }
.switch input:checked + span::after, .switch input:checked + .track::after { transform: translateX(17px); }

.setting-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.setting-row:last-child { border-bottom: 0; }
.setting-row .txt { min-width: 0; }
.setting-row .txt b { display: block; font-size: 13.5px; }
.setting-row .txt small { color: var(--muted); font-size: 12px; }
.setting-row .end { margin-left: auto; }

/* ================= Misc ================= */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: #374151;
  background: var(--chip-bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px;
}
.pill button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.pill button:hover { color: var(--red); }

.timeline { display: grid; gap: 2px; }
.tl-item { display: flex; gap: 12px; padding: 10px 0; }
.tl-item .dot2 { width: 9px; height: 9px; border-radius: 50%; background: var(--red); margin-top: 6px; flex: none; box-shadow: 0 0 0 3px var(--red-soft); }
.tl-item .txt b { font-size: 13px; }
.tl-item .txt small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }

.note-box {
  display: flex; gap: 11px;
  padding: 13px 16px; border-radius: var(--radius-sm);
  background: rgba(217, 119, 6, 0.10);
  border: 1px solid rgba(217, 119, 6, 0.25);
  color: #92400e; font-size: 12.5px; line-height: 1.55;
}
.note-box.info { background: var(--red-soft); border-color: rgba(225,29,46,0.2); color: #9e1020; }
.note-box svg { flex: none; margin-top: 1px; }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pagination .pages { display: flex; gap: 4px; }
.pagination .pages button {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.pagination .pages button.on { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .pages button:hover:not(.on) { border-color: var(--red); color: var(--red); }

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; }
  .grid.thirds { grid-template-columns: 1fr; }
  .form-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.25s ease; box-shadow: 0 20px 50px -20px rgba(0,0,0,0.35); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-btn { display: grid; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .search { display: none; }
  .form-grid.two { grid-template-columns: 1fr; }
  .form-grid.four { grid-template-columns: 1fr; }
  .grid.even { grid-template-columns: 1fr; }
}

/* =====================================================================
   Rider console — refined layout components
   ===================================================================== */
.content { max-width: 1280px; margin: 0 auto; width: 100%; }
.page-head { margin-bottom: 22px; }
.card, .kpi { box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 16px 38px -30px rgba(16, 24, 40, 0.32); }

/* ---------- Hero banner ---------- */
.hero {
  position: relative; overflow: hidden; margin-bottom: 22px;
  border-radius: var(--radius); padding: 26px 28px; color: #fff;
  background: linear-gradient(135deg, #ff2e3f 0%, #e11d2e 48%, #9e1020 100%);
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap;
  box-shadow: 0 28px 60px -36px rgba(158, 16, 32, 0.9);
}
.hero::after {
  content: ""; position: absolute; width: 360px; height: 360px; right: -70px; top: -170px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.26), transparent 66%);
  pointer-events: none;
}
.hero .h-left, .hero .h-right { position: relative; z-index: 1; }
.h-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; opacity: 0.85; }
.h-value { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-top: 9px; }
.h-sub { font-size: 12.5px; opacity: 0.92; margin-top: 8px; }
.h-stats { display: flex; gap: 34px; margin-top: 22px; flex-wrap: wrap; }
.h-stat b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.h-stat span { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.82; }
.h-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 11px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 7px 9px 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
}
.status-pill .switch span { background: rgba(255, 255, 255, 0.4); }
.status-pill .switch input:checked + span { background: #fff; }
.hero .btn.light { background: #fff; color: var(--red); box-shadow: 0 14px 26px -18px rgba(0, 0, 0, 0.55); }
.hero .btn.light:hover { filter: none; background: #fdf1f2; }

/* ---------- Route (pickup → dropoff) ---------- */
.route { display: grid; padding: 4px 0 4px; }
.route-stop { display: flex; gap: 14px; }
.route-mark { flex: none; width: 16px; display: flex; flex-direction: column; align-items: center; }
.route-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); margin-top: 3px; }
.route-stop.to .route-dot { background: var(--ink); box-shadow: 0 0 0 4px var(--chip-bg); }
.route-line { flex: 1; width: 2px; min-height: 30px; margin: 4px 0; background-image: linear-gradient(var(--line) 55%, transparent 0); background-size: 2px 9px; background-position: center; }
.route-body { min-width: 0; padding-bottom: 8px; }
.route-body b { display: block; font-size: 13.5px; font-weight: 700; }
.route-body small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.route-meta { margin-left: auto; text-align: right; white-space: nowrap; }

/* ---------- Progress ---------- */
.progress { height: 9px; border-radius: 999px; background: var(--chip-bg); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--red), var(--red-deep)); }
.progress.alt > i { background: linear-gradient(90deg, #475569, #94a3b8); }
.progress-row { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.progress-row .muted { color: var(--muted); }

/* ---------- Job card ---------- */
.job-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.job-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); transition: border-color 0.18s, box-shadow 0.18s; }
.job-card:hover { border-color: #f3c2c7; box-shadow: 0 22px 46px -32px rgba(225, 29, 46, 0.55); }
.job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.job-head h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.job-head .job-id { font-size: 12px; color: var(--muted); font-weight: 600; }
.job-pay { text-align: right; flex: none; }
.job-pay b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--green); line-height: 1; }
.job-pay span { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.job-actions { display: flex; gap: 10px; margin-top: 16px; }
.job-actions .btn, .job-actions .ghost { flex: 1; justify-content: center; }

/* ---------- Mini stat tiles ---------- */
.mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini .tile { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.mini .tile b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.mini .tile span { font-size: 11.5px; color: var(--muted); }

@media (max-width: 1080px) {
  .hero { padding: 22px; }
  .h-value { font-size: 34px; }
  .job-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .content { padding: 16px; }
  .h-stats { gap: 22px; }
  .h-value { font-size: 30px; }
  .hero { padding: 20px; }
  .h-right { align-items: stretch; width: 100%; }
  .job-actions { flex-direction: column; }
  .mini { grid-template-columns: 1fr; }
}

/* =====================================================================
   Rider console — performance bonus (gamified)
   ===================================================================== */
.bonus-top { display: flex; align-items: center; gap: 20px; }
.ring {
  --p: 0;
  position: relative; flex: none;
  width: 118px; height: 118px; border-radius: 50%;
  background: conic-gradient(var(--red) calc(var(--p) * 1%), var(--chip-bg) 0);
  display: grid; place-items: center;
}
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.ring-txt { position: relative; text-align: center; line-height: 1; }
.ring-txt b { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.ring-txt b small { font-size: 13px; font-weight: 700; color: var(--muted); }
.ring-txt em { display: block; font-style: normal; font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.bonus-info { min-width: 0; }
.bonus-amt { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--green); line-height: 1; }
.bonus-amt small { display: block; font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.bonus-amt.locked { color: var(--muted); }

/* ---------- Monthly bonus calendar ---------- */
.monthly-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.monthly-amt { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.monthly-amt small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 7px; }
.monthly-prog { flex: none; text-align: right; }
.monthly-prog b { font-family: var(--font-display); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.monthly-prog small { display: block; font-size: 11px; color: var(--muted); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 18px; }
.cal .dow { text-align: center; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #9ca3af; }
.cal .d { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #9ca3af; background: var(--chip-bg); }
.cal .d.l1 { background: rgba(225, 29, 46, 0.14); color: #a1111f; }
.cal .d.l2 { background: rgba(225, 29, 46, 0.32); color: #fff; }
.cal .d.l3 { background: rgba(225, 29, 46, 0.56); color: #fff; }
.cal .d.l4 { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; box-shadow: 0 7px 14px -9px rgba(225, 29, 46, 0.95); }
.cal .d.today { outline: 2px solid var(--red); outline-offset: 1px; }
.cal-legend { display: flex; align-items: center; gap: 6px; justify-content: flex-end; margin-top: 10px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cal-legend i.l1 { background: rgba(225, 29, 46, 0.14); }
.cal-legend i.l2 { background: rgba(225, 29, 46, 0.32); }
.cal-legend i.l3 { background: rgba(225, 29, 46, 0.56); }
.cal-legend i.l4 { background: linear-gradient(135deg, var(--red), var(--red-deep)); }
.monthly-foot { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.monthly-foot .mf { text-align: center; }
.monthly-foot .mf + .mf { border-left: 1px solid var(--line); }
.monthly-foot b { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.monthly-foot span { font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 560px) {
  .bonus-top { gap: 16px; }
  .ring { width: 100px; height: 100px; }
}

@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
}
