/* Axis Fuel Partner Webapps (Rider App & Station Desk)
 * Unified Axis Fuel brand palette + mobile-first Lagos dispatch craft. */

:root {
  --ink: #171615;
  --ink-2: #242120;
  --ink-3: #332F2D;
  --paper: #F7F4EE;
  --sand: #EFECE4;
  --surface: #FFFFFF;
  --line: #E2DDD3;
  --line-strong: #C9C1B4;
  --fg: #171615;
  --fg-2: #57524C;
  --fg-3: #7A746C;
  --flame: #C84317;
  --flame-600: #A8350F;
  --flame-700: #8E2C0B;
  --flame-soft: #FBF2EE;
  --flame-border: #ECC5B5;
  --emerald: #176B46;
  --emerald-dark: #115336;
  --emerald-soft: #EDF5F0;
  --emerald-border: #C5DFD0;
  --amber: #B4690E;
  --amber-bright: #D98A1C;
  --amber-soft: #FDF8EC;
  --amber-border: #F2DB9F;
  --danger: #B91C1C;
  --danger-soft: #FDF2F2;
  --danger-border: #F5C2C2;

  --display: 'Outfit', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --shadow-card: 0 2px 10px rgba(24, 22, 21, 0.04), 0 1px 2px rgba(24, 22, 21, 0.06);
  --shadow-hero: 0 18px 40px -14px rgba(24, 22, 21, 0.34);
  --shadow-float: 0 12px 32px rgba(24, 22, 21, 0.16);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--fg);
  font: 400 15px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.sr-svg { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* Desktop subtle studio framing around the 496px mobile-first app shell */
.app-shell {
  min-height: 100dvh;
  max-width: 496px;
  margin: 0 auto;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (min-width: 600px) {
  body {
    background: linear-gradient(180deg, #EAE4D8 0%, #DFD8CA 100%);
    padding: 20px 16px 32px;
  }
  .app-shell {
    min-height: calc(100dvh - 52px);
    border-radius: 30px;
    border: 1px solid rgba(24, 22, 21, 0.08);
    box-shadow: 0 32px 80px -24px rgba(24, 22, 21, 0.28);
    overflow: hidden;
  }
}

/* Sticky Top Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 58px;
  padding: 0 16px;
  background: rgba(246, 243, 236, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  min-width: 0;
}

.topbar-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 700 16px/1 var(--display);
  letter-spacing: -0.02em;
}

.app-badge {
  font: 700 10px/1 var(--body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--ink);
  color: #FAF7F2;
}

.app-badge.station {
  background: var(--flame);
  color: #FFFFFF;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--fg-2);
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}

.icon-btn:active { transform: scale(0.95); }
.icon-btn:hover { border-color: var(--line-strong); color: var(--fg); }
.icon-btn svg { width: 18px; height: 18px; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--fg-2);
}

.live-pill.on {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald-dark);
}

.live-pill.busy {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  color: #92400E;
}

.live-pill.closed {
  background: var(--danger-soft);
  border-color: var(--danger-border);
  color: #B91C1C;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.dot.pulse {
  box-shadow: 0 0 0 0 rgba(23, 107, 70, 0.5);
  animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(23, 107, 70, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(23, 107, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 107, 70, 0); }
}

/* Offline Network Banner */
.net-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  background: #991B1B;
  color: #FEF2F2;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.net-banner svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Main scrolling area */
.app-main {
  flex: 1;
  padding: 14px 14px 102px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-main.auth-mode {
  padding-bottom: 32px;
}

/* Boot Shimmer Skeleton */
.skeleton-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.skel-card.dark {
  background: linear-gradient(155deg, #211F1E 0%, #151413 100%);
  border-color: rgba(250, 247, 242, 0.08);
  min-height: 88px;
}

.skel-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--sand) 25%, #F6F3EC 50%, var(--sand) 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.35s ease-in-out infinite;
}

.skel-card.dark .skel-line {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 200% 100%;
}

.skel-line.w-40 { width: 40%; height: 11px; }
.skel-line.w-65 { width: 65%; height: 22px; }
.skel-line.w-85 { width: 85%; }
.skel-line.h-50 { width: 100%; height: 50px; border-radius: 14px; }
.skel-line.h-54 { width: 100%; height: 54px; border-radius: 15px; }

@keyframes skelShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skel-line { animation: none; }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.card-tight { padding: 14px 16px; border-radius: var(--r-md); }
.card-verified { border-color: var(--emerald); }
.card-enroute { border-color: var(--amber-border); }

.card-dark {
  background: linear-gradient(155deg, #211F1E 0%, #151413 100%);
  color: #FAF7F2;
  border: 1px solid rgba(250, 247, 242, 0.09);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-hero);
  position: relative;
  overflow: hidden;
}

.card-dark::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 67, 23, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.card-emerald {
  background: linear-gradient(155deg, #176B46 0%, #115336 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: 0 18px 40px -14px rgba(10, 126, 68, 0.45);
}

.card-offer {
  background: var(--surface);
  border: 2px solid var(--emerald);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: 0 16px 40px -12px rgba(23, 107, 70, 0.28);
}

/* Priority-First Shift Telemetry Ribbon */
.shift-ribbon {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

.shift-ribbon-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shift-ribbon-stat {
  font: 700 13.5px/1.2 var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shift-ribbon-sub {
  font-size: 11.5px;
  color: var(--fg-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Typography helpers */
.kicker {
  font: 700 11px/1.2 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0;
}

.card-dark .kicker, .card-emerald .kicker {
  color: rgba(250, 247, 242, 0.65);
}

.h1 {
  font: 700 26px/1.12 var(--display);
  letter-spacing: -0.025em;
  margin: 0;
}

.h2 {
  font: 700 19px/1.2 var(--display);
  letter-spacing: -0.02em;
  margin: 0;
}

.h3 {
  font: 700 16px/1.25 var(--display);
  letter-spacing: -0.015em;
  margin: 0;
}

.sub {
  font-size: 13.5px;
  color: var(--fg-2);
  margin: 4px 0 0;
}

.card-dark .sub { color: #B8B0A6; }
.card-emerald .sub { color: rgba(255, 255, 255, 0.88); }

.big-money {
  font: 700 36px/1.05 var(--display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.text-emerald { color: var(--emerald-dark); }
.tc { text-align: center; }
.tl { text-align: left; }
.min-w-0 { min-width: 0; }
.pad-lg { padding: 26px 20px; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mb-14 { margin-bottom: 14px; }
.my-6 { margin: 6px 0; }
.divider-top { border-top: 1px solid var(--line); padding-top: 14px; }
.bg-paper { background: var(--paper); }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.row-base { align-items: baseline; }

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.offer-actions {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 10px;
}

/* Segmented Tabs (Sign In / Sign Up, Stock Status) */
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border-radius: 14px;
  background: var(--sand);
  border: 1px solid var(--line);
  gap: 4px;
}

.seg button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-2);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.seg button.active {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 2px 6px rgba(24, 22, 21, 0.08);
}

.seg.stock-seg button {
  min-height: 38px;
  font-size: 12.5px;
  font-weight: 700;
}

.seg.stock-seg button.active.s-ok {
  background: var(--emerald);
  color: #FFFFFF;
}

.seg.stock-seg button.active.s-low {
  background: var(--amber);
  color: #FFFFFF;
}

.seg.stock-seg button.active.s-out {
  background: var(--danger);
  color: #FFFFFF;
}

/* Primary & Tactile Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 15px;
  font: 700 15.5px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.btn:active:not(:disabled) { transform: scale(0.985); }
.btn:disabled { opacity: 0.52; cursor: not-allowed; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-xs svg { width: 15px; height: 15px; }

.btn.is-busy {
  pointer-events: none;
  opacity: 0.78;
}

.btn.is-busy::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: axisSpin 0.65s linear infinite;
  flex: none;
}

@keyframes axisSpin {
  to { transform: rotate(360deg); }
}

.btn-flame { background: var(--flame); color: #FFFFFF; }
.btn-flame:hover:not(:disabled) { background: var(--flame-600); }

.btn-emerald { background: var(--emerald); color: #FFFFFF; }
.btn-emerald:hover:not(:disabled) { background: var(--emerald-dark); }

.btn-ink { background: var(--ink); color: #FAF7F2; }
.btn-ink:hover:not(:disabled) { background: #2D2A28; }

.btn-soft {
  background: var(--sand);
  color: var(--fg);
  border: 1px solid var(--line);
}
.btn-soft:hover:not(:disabled) { background: #E3DDD2; }

.btn-ghost {
  background: transparent;
  color: var(--fg-2);
  border: 1.5px solid var(--line);
}

.btn-danger-soft {
  background: var(--danger-soft);
  color: #B91C1C;
  border: 1px solid var(--danger-border);
}

.btn-hero {
  min-height: 58px;
  font-size: 16.5px;
}

.btn-sm {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13.5px;
}

.btn-xs {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12.5px;
}

/* Form Inputs & PIN Eye Toggle */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field label span {
  font-weight: 500;
  font-size: 11.5px;
  color: var(--fg-3);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
  color: var(--fg);
  font-size: 15.5px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(24, 22, 21, 0.08);
}

.pin-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pin-wrap input {
  padding-right: 48px;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}

.pin-wrap input::placeholder {
  letter-spacing: normal;
}

.pin-toggle {
  position: absolute;
  right: 6px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--fg-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.pin-toggle:hover {
  color: var(--fg);
  background: var(--sand);
}

.pin-toggle svg {
  width: 19px;
  height: 19px;
}

/* Lagos Area Pills & Quick Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-2);
  cursor: pointer;
  transition: all 0.14s ease;
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FAF7F2;
}

/* Vehicle Choice Cards */
.choice-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-card {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.choice-card svg {
  width: 24px;
  height: 24px;
  color: var(--fg-2);
  margin-bottom: 2px;
}

.choice-card strong { font-size: 14px; }
.choice-card small { font-size: 11.5px; color: var(--fg-3); }
.choice-card.active {
  background: var(--flame-soft);
  border-color: var(--flame);
  color: var(--flame-600);
}
.choice-card.active svg { color: var(--flame-600); }

/* 4-Box Segmented Code Input */
.code-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.code-boxes input {
  width: 100%;
  height: 64px;
  text-align: center;
  font: 700 28px/1 var(--display);
  font-variant-numeric: tabular-nums;
  border: 2px solid var(--line-strong);
  border-radius: 16px;
  background: var(--paper);
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s, background-color 0.15s, transform 0.1s;
}

.code-boxes input:focus {
  border-color: var(--emerald);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(23, 107, 70, 0.15);
  transform: translateY(-1px);
}

/* Big Display Code Vault (Rider Pickup Code) */
.code-vault {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px;
  border-radius: 18px;
  background: var(--ink);
  color: #FAF7F2;
  text-align: center;
}

.code-vault-digits {
  font: 700 44px/1 var(--display);
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  color: var(--amber-bright);
  margin: 10px 0 4px;
  font-variant-numeric: tabular-nums;
}

/* Live Attendant Wait Bar & Verified Banner */
.wait-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: #78350F;
}

.wait-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wait-bar-left svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--amber);
}

.wait-bar-left strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.wait-bar-left span {
  display: block;
  font-size: 11.5px;
  opacity: 0.85;
}

.verified-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: #065F46;
  font-size: 13px;
  font-weight: 700;
}

.verified-bar svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--emerald);
}

/* Stepper (Onboarding & Active Job) */
.stepper {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
}

.step-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.step-bar {
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  transition: background-color 0.25s;
}

.step-item.done .step-bar { background: var(--emerald); }
.step-item.active .step-bar { background: var(--flame); }

.step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-3);
  text-align: center;
}

.step-item.done .step-label { color: var(--emerald-dark); }
.step-item.active .step-label { color: var(--fg); }

/* Offer Telemetry Chips */
.offer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.offer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.offer-chip svg {
  width: 13px;
  height: 13px;
  color: var(--fg-3);
}

/* Vertical Route Timeline */
.route {
  display: grid;
  gap: 14px;
  position: relative;
  padding-left: 24px;
}

.route::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line-strong) 0 4px,
    transparent 4px 8px
  );
}

.route-stop {
  position: relative;
}

.route-pin {
  position: absolute;
  left: -24px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px currentColor;
}

.route-pin.pickup { color: var(--flame); background: var(--flame); }
.route-pin.dropoff { color: var(--emerald); background: var(--emerald); }

.route-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.route-name {
  font: 700 15.5px/1.25 var(--display);
  margin-top: 2px;
}

.route-meta {
  font-size: 13px;
  color: var(--fg-2);
  margin-top: 2px;
}

/* Landmark Callout (Lagos Gate Directions) */
.landmark-box {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 13px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: #78350F;
  font-size: 13.5px;
  font-weight: 600;
}

.landmark-box svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--amber);
}

/* KPI Tiles */
.kpi {
  padding: 12px 12px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.card-dark .kpi {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.kpi-val {
  font: 700 20px/1.1 var(--display);
  font-variant-numeric: tabular-nums;
}

.kpi-lbl {
  font-size: 11.5px;
  color: var(--fg-3);
  margin-top: 3px;
}

.card-dark .kpi-lbl { color: #A89F95; }

/* Countdown Bar for Live Offers */
.countdown-track {
  height: 6px;
  border-radius: 999px;
  background: var(--sand);
  overflow: hidden;
  margin-top: 6px;
}

.countdown-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-bright), var(--emerald));
  transition: width 0.5s linear, background-color 0.25s ease;
}

.countdown-fill.warn {
  background: var(--amber);
}

.countdown-fill.crit {
  background: var(--danger);
}

/* Wallet Threshold Progress Track */
.min-progress {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.min-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #C9C0B3;
  font-variant-numeric: tabular-nums;
}

.min-progress-meta b {
  color: #FAF7F2;
}

.min-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.min-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--emerald);
  transition: width 0.3s ease;
}

/* Status Pill Badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.pill svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.pill-ok { background: var(--emerald-soft); color: var(--emerald-dark); border: 1px solid var(--emerald-border); }
.pill-warn { background: var(--amber-soft); color: #92400E; border: 1px solid var(--amber-border); }
.pill-bad { background: var(--danger-soft); color: #B91C1C; border: 1px solid var(--danger-border); }
.pill-neutral { background: var(--sand); color: var(--fg-2); border: 1px solid var(--line); }

/* Radar Ring */
.radar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(23, 107, 70, 0.12);
  display: grid;
  place-items: center;
  position: relative;
  margin: 4px auto 12px;
}

.radar::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(23, 107, 70, 0.35);
  animation: radarWave 2.2s ease-out infinite;
}

.radar-core {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--emerald);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(23, 107, 70, 0.38);
}

.radar-core svg { width: 22px; height: 22px; }

.radar.radar-warn { background: var(--amber-soft); }
.radar.radar-warn::before { border-color: rgba(217, 119, 6, 0.35); }
.radar.radar-warn .radar-core { background: var(--amber); box-shadow: 0 8px 20px rgba(217, 119, 6, 0.32); }

.radar.radar-bad { background: var(--danger-soft); }
.radar.radar-bad::before { border-color: rgba(220, 38, 38, 0.3); animation: none; }
.radar.radar-bad .radar-core { background: var(--danger); box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3); }

@keyframes radarWave {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.38); opacity: 0; }
}

/* Selfie Capture Box */
.selfie-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1.5px dashed var(--line-strong);
  background: var(--paper);
  cursor: pointer;
}

.selfie-box.ready {
  border-style: solid;
  border-color: var(--emerald);
  background: var(--emerald-soft);
}

.selfie-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  color: var(--fg-2);
}

.selfie-thumb svg { width: 24px; height: 24px; }

.selfie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Price Adjuster (Station Webapp) */
.price-stepper {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 8px;
  align-items: stretch;
}

.price-stepper button {
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
  font: 700 14px/1 var(--body);
  cursor: pointer;
  min-height: 52px;
}

.price-stepper button:active { background: var(--sand); }

.price-stepper input {
  text-align: center;
  font: 700 22px/1 var(--display);
  font-variant-numeric: tabular-nums;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  min-height: 52px;
  outline: none;
}

.price-stepper input:focus { border-color: var(--ink); }

/* Ledger & Pickup List Rows (Moniepoint Icon Circles) */
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.list-row:first-child { padding-top: 2px; }
.list-row:last-child { padding-bottom: 2px; border-bottom: 0; }

.ledger-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.ledger-ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}

.ledger-ico svg { width: 18px; height: 18px; }
.ledger-ico.credit { background: var(--emerald-soft); color: var(--emerald-dark); border: 1px solid var(--emerald-border); }
.ledger-ico.debit { background: var(--sand); color: var(--fg-2); border: 1px solid var(--line); }
.ledger-ico.bank { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }

.ledger-amt {
  font: 700 15.5px/1.2 var(--display);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.ledger-amt.credit { color: var(--emerald-dark); }
.ledger-amt.debit { color: var(--fg); }

/* Bank Account Copy Box */
.bank-slip {
  padding: 14px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.bank-num {
  font: 700 22px/1 var(--display);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 496px;
  z-index: 35;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
}

@media (min-width: 600px) {
  .bottom-nav {
    position: sticky;
    left: auto;
    transform: none;
  }
}

.nav-item {
  border: 0;
  background: transparent;
  padding: 7px 4px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--fg-3);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}

.nav-item svg { width: 21px; height: 21px; }
.nav-item.active { color: var(--ink); background: var(--sand); }
.nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--flame);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%) translateY(-14px);
  z-index: 60;
  max-width: calc(100vw - 28px);
  width: 440px;
  padding: 13px 16px;
  border-radius: 15px;
  background: var(--ink);
  color: #FAF7F2;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.ok { background: #115336; }
.toast.err { background: #B91C1C; }

/* Bottom Sheet Modal */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(24, 22, 21, 0.58);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet {
  width: 100%;
  max-width: 496px;
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  padding: 16px 18px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.28);
  max-height: 88dvh;
  overflow-y: auto;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
  margin: 0 auto 14px;
}

.alert-box {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 500;
}

.alert-box.err { background: var(--danger-soft); border: 1px solid var(--danger-border); color: #991B1B; }
.alert-box.ok { background: var(--emerald-soft); border: 1px solid var(--emerald-border); color: #065F46; }
.alert-box.warn { background: var(--amber-soft); border: 1px solid var(--amber-border); color: #92400E; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-2);
  cursor: pointer;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--ink);
  flex: none;
}

.divider-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--fg-3);
}

.divider-note a {
  color: var(--flame-600);
  font-weight: 600;
  text-decoration: none;
}
