:root {
  --yellow: #ffce00;
  --yellow-dark: #e8b900;
  --dark: #101114;
  --muted: #6b7280;
  --line: #e9edf2;
  --bg: #f6f7fb;
  --card: rgba(255, 255, 255, .94);
  --shadow: 0 22px 70px rgba(16, 17, 20, .18);
  --radius: 24px;
  --safe-bottom: env(safe-area-inset-bottom);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--dark); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }
.app-map-page { min-height: 100dvh; overflow: hidden; background: #dce7ee; }
.map-bg { position: fixed; inset: 0; z-index: 0; background: linear-gradient(135deg, #dfeff8, #f9f9f5); }
.map-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 20%, rgba(255, 206, 0, .25), transparent 24%), linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px), linear-gradient(0deg, rgba(255,255,255,.55) 1px, transparent 1px); background-size: auto, 78px 78px, 78px 78px; pointer-events: none; }
#mainMap, #driverMap, #trackMap { width: 100%; height: 100%; min-height: 100dvh; }
.app-layer { position: relative; z-index: 2; min-height: 100dvh; pointer-events: none; }
.app-layer > * { pointer-events: auto; }
.top-mobile { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 14px; right: 14px; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(0,0,0,.12); font-weight: 900; }
.brand-chip b { color: var(--dark); }
.brand-chip span { color: var(--yellow-dark); }
.icon-btn { width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.96); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.12); cursor: pointer; }
.sheet { position: fixed; left: 12px; right: 12px; bottom: calc(82px + var(--safe-bottom)); z-index: 7; max-height: 73dvh; overflow: auto; padding: 18px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.sheet.desktop-left { left: 24px; right: auto; top: 92px; bottom: 24px; width: min(430px, calc(100vw - 48px)); max-height: none; }
.sheet h1, .sheet h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.05; letter-spacing: -0.03em; }
.sheet p { color: var(--muted); margin: 0 0 16px; }
.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field label { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 800; color: #394150; text-transform: uppercase; letter-spacing: .04em; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px; background: #fff; outline: 0; }
.field textarea { min-height: 94px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--yellow-dark); box-shadow: 0 0 0 4px rgba(255,206,0,.18); }
.btn { width: 100%; border: 0; border-radius: 18px; padding: 15px 18px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; background: var(--dark); color: #fff; font-weight: 900; cursor: pointer; box-shadow: 0 14px 30px rgba(16,17,20,.22); }
.btn.yellow { background: var(--yellow); color: var(--dark); box-shadow: 0 14px 28px rgba(255,206,0,.32); }
.btn.light { background: #fff; color: var(--dark); border: 1px solid var(--line); box-shadow: none; }
.btn.danger { background: #ef4444; }
.btn.small { width: auto; padding: 10px 14px; border-radius: 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.stat { padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font-size: 20px; }
.stat span { display: block; color: var(--muted); font-size: 12px; }
.cards { display: grid; gap: 12px; }
.card { padding: 16px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(16,17,20,.06); }
.card h3 { margin: 0 0 4px; font-size: 17px; }
.card p { margin: 0 0 12px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; background: #f2f4f7; color: #344054; font-size: 12px; font-weight: 800; }
.badge.yellow { background: rgba(255,206,0,.22); color: #7a5d00; }
.badge.green { background: #dcfce7; color: #166534; }
.badge.red { background: #fee2e2; color: #991b1b; }
.flash { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 20; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); font-weight: 800; }
.flash.error { background: #fee2e2; color: #991b1b; }
.flash.ok { background: #dcfce7; color: #166534; }
.mobile-nav { position: fixed; z-index: 9; left: 12px; right: 12px; bottom: calc(12px + var(--safe-bottom)); height: 64px; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 24px; background: rgba(16,17,20,.92); color: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.28); backdrop-filter: blur(14px); overflow: hidden; }
.mobile-nav a { display: grid; place-items: center; gap: 2px; font-size: 11px; color: rgba(255,255,255,.72); }
.mobile-nav a span { font-size: 18px; line-height: 1; }
.mobile-nav a span img { width: 24px; height: 24px; display: block; object-fit: contain; border-radius: 7px; }
.mobile-nav a.active { color: var(--yellow); background: rgba(255,255,255,.08); }
.auth-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, rgba(255,206,0,.35), transparent 35%), linear-gradient(135deg, #101114, #2a2d34); }
.auth-card { width: min(430px, 100%); padding: 26px; border-radius: 30px; background: #fff; box-shadow: var(--shadow); }
.auth-card .logo { font-size: 28px; font-weight: 950; letter-spacing: -0.05em; margin-bottom: 4px; }
.auth-card .logo span { color: var(--yellow-dark); }
.auth-card h1 { margin: 0 0 8px; }
.auth-card p { color: var(--muted); margin: 0 0 18px; }
.landing { min-height: 100dvh; background: #101114; color: #fff; overflow: hidden; }
.landing .hero-map { position: absolute; inset: 0; opacity: .5; background: linear-gradient(135deg, #2e3741, #111), repeating-linear-gradient(45deg, rgba(255,255,255,.09) 0 1px, transparent 1px 45px); }
.landing-content { position: relative; z-index: 2; min-height: 100dvh; display: grid; align-content: center; padding: 26px; max-width: 1140px; margin: auto; }
.landing h1 { max-width: 760px; font-size: clamp(42px, 8vw, 92px); line-height: .92; letter-spacing: -0.07em; margin: 0 0 16px; }
.landing p { max-width: 560px; color: rgba(255,255,255,.74); font-size: 18px; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.landing-actions .btn { width: auto; min-width: 170px; }
.list-page { min-height: 100dvh; padding: 22px 16px 96px; background: var(--bg); }
.page-container { max-width: 960px; margin: 0 auto; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-title h1 { margin: 0; letter-spacing: -0.04em; }
.order-timeline { display: grid; gap: 8px; margin-top: 12px; }
.timeline-item { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.timeline-item.done .timeline-dot { background: var(--yellow-dark); }
.driver-feed { display: grid; gap: 12px; }
.job-card { border: 2px solid transparent; }
.job-card.live { border-color: var(--yellow); }
.admin-shell { min-height: 100dvh; display: grid; grid-template-columns: 260px 1fr; }
.admin-sidebar { background: #101114; color: #fff; padding: 24px; }
.brand-mini { font-size: 22px; font-weight: 950; margin-bottom: 24px; }
.brand-mini span { display: block; color: var(--yellow); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.admin-sidebar nav { display: grid; gap: 8px; }
.admin-sidebar a { color: rgba(255,255,255,.72); padding: 13px 14px; border-radius: 14px; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: rgba(255,255,255,.1); color: var(--yellow); }
.admin-main { padding: 24px; }
.admin-top { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.table-wrap { overflow: auto; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; color: var(--muted); background: #fbfcfe; letter-spacing: .04em; }
.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: none; place-items: center; padding: 20px; background: rgba(0,0,0,.45); }
.modal-backdrop.open { display: grid; }
.modal { width: min(500px, 100%); border-radius: 28px; background: #fff; padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 860px) {
  .mobile-nav:not(.business-nav) { display: none; }
  .top-mobile { max-width: 430px; }
  .list-page { padding-bottom: 30px; }
  .auth-page { padding: 40px; }
}
@media (max-width: 859px) {
  .sheet.desktop-left { left: 12px; right: 12px; top: auto; bottom: calc(82px + var(--safe-bottom)); width: auto; max-height: 73dvh; }
  .admin-shell { display: block; }
  .admin-sidebar { position: sticky; top: 0; z-index: 5; padding: 14px; }
  .admin-sidebar nav { display: flex; overflow: auto; }
  .admin-sidebar a { white-space: nowrap; }
  .admin-main { padding: 16px; }
  .grid.two { grid-template-columns: 1fr; }
}

/* Vukea native-style alerts and confirmations */
body.vukea-dialog-open { overflow: hidden !important; }
.vukea-native-dialog { position: fixed; z-index: 10000; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); background: rgba(9, 18, 24, .46); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, visibility .18s ease; }
.vukea-native-dialog.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.vukea-native-dialog-card { position: relative; width: min(470px, 100%); padding: 24px 20px 18px; border: 1px solid rgba(16, 24, 32, .07); border-radius: 30px; background: #fff; box-shadow: 0 28px 80px rgba(15, 23, 32, .28); transform: translateY(24px) scale(.985); transition: transform .2s ease; }
.vukea-native-dialog.is-open .vukea-native-dialog-card { transform: translateY(0) scale(1); }
.vukea-native-dialog-close { position: absolute; top: 13px; right: 13px; width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #f1f4f6; color: #344054; font-size: 23px; line-height: 1; cursor: pointer; }
.vukea-native-dialog-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 18px; background: #eaf9f8; color: #067f82; font-size: 24px; line-height: 1; font-weight: 1000; box-shadow: inset 0 0 0 1px rgba(5, 170, 169, .12); }
.vukea-native-dialog-copy { padding-right: 28px; }
.vukea-native-dialog-copy h2 { margin: 0; color: #101820; font-size: 21px; line-height: 1.08; letter-spacing: -.035em; font-weight: 1000; }
.vukea-native-dialog-copy p { margin: 9px 0 0; color: #667085; font-size: 13px; line-height: 1.5; font-weight: 720; white-space: pre-line; overflow-wrap: anywhere; }
.vukea-native-dialog-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 20px; }
.vukea-native-dialog[data-mode="confirm"] .vukea-native-dialog-actions { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
.vukea-native-dialog-button { min-height: 52px; border: 0; border-radius: 17px; padding: 12px 16px; font: inherit; font-size: 12px; font-weight: 1000; cursor: pointer; transition: transform .12s ease, opacity .12s ease; }
.vukea-native-dialog-button:active { transform: scale(.985); }
.vukea-native-dialog-button.secondary { background: #f1f4f6; color: #344054; }
.vukea-native-dialog-button.primary { background: #101820; color: #fff; box-shadow: 0 12px 25px rgba(16, 24, 32, .18); }
.vukea-native-dialog.theme-driver .vukea-native-dialog-button.primary:not(.danger) { background: #05aaa9; box-shadow: 0 12px 25px rgba(5, 170, 169, .24); }
.vukea-native-dialog.theme-driver .vukea-native-dialog-icon { background: #e7fafa; color: #067f82; }
.vukea-native-dialog.tone-success .vukea-native-dialog-icon { background: #eaf8ef; color: #027a48; box-shadow: inset 0 0 0 1px rgba(2, 122, 72, .10); }
.vukea-native-dialog.tone-warning .vukea-native-dialog-icon { background: #fff6df; color: #9a6700; box-shadow: inset 0 0 0 1px rgba(154, 103, 0, .10); }
.vukea-native-dialog.tone-error .vukea-native-dialog-icon,
.vukea-native-dialog.tone-danger .vukea-native-dialog-icon { background: #feeceb; color: #b42318; box-shadow: inset 0 0 0 1px rgba(180, 35, 24, .10); }
.vukea-native-dialog-button.primary.danger { background: #d92d20; box-shadow: 0 12px 25px rgba(217, 45, 32, .22); }
@media (min-width: 700px) {
  .vukea-native-dialog { align-items: center; padding: 24px; }
  .vukea-native-dialog-card { padding: 26px 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .vukea-native-dialog, .vukea-native-dialog-card, .vukea-native-dialog-button { transition: none; }
}

/* Easy4U Admin platform shell */
.admin-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  background: #f5f7fb;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px 14px 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #101828 0%, #0d1423 100%);
  color: #fff;
  box-shadow: 12px 0 34px rgba(16, 24, 40, .08);
}
.admin-side-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 8px 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-side-brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.admin-side-brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.admin-side-brand strong,
.admin-side-brand small {
  display: block;
}
.admin-side-brand strong {
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.admin-side-brand small {
  margin-top: 3px;
  color: rgba(255,255,255,.5);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.admin-side-nav {
  min-height: 0;
  flex: 1;
  display: block !important;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.admin-side-nav::-webkit-scrollbar { width: 5px; }
.admin-side-nav::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(255,255,255,.18); }
.admin-side-section {
  display: block;
  margin: 17px 10px 7px;
  color: rgba(255,255,255,.34);
  font-size: 8.5px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: .14em;
}
.admin-side-section:first-child { margin-top: 5px; }
.admin-sidebar .admin-side-link,
.admin-sidebar .admin-side-logout {
  position: relative;
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 3px 0;
  padding: 9px 11px;
  border-radius: 12px;
  color: rgba(255,255,255,.67);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.admin-sidebar .admin-side-link::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: #fe6902;
  opacity: 0;
  transform: scaleY(.45);
  transition: opacity .16s ease, transform .16s ease;
}
.admin-sidebar .admin-side-link:hover,
.admin-sidebar .admin-side-link.active {
  background: rgba(255,255,255,.075);
  color: #fff;
}
.admin-sidebar .admin-side-link.active {
  background: linear-gradient(90deg, rgba(1,41,185,.45), rgba(1,41,185,.14));
  box-shadow: inset 0 0 0 1px rgba(72,112,255,.14);
}
.admin-sidebar .admin-side-link.active::before {
  opacity: 1;
  transform: scaleY(1);
}
.admin-side-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.68);
}
.admin-side-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-side-link strong,
.admin-side-logout strong {
  min-width: 0;
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1.2;
}
.admin-sidebar .admin-side-link.active .admin-side-icon {
  background: #0129b9;
  color: #fff;
  box-shadow: 0 7px 18px rgba(1,41,185,.28);
}
.admin-side-footer {
  flex: 0 0 auto;
  padding: 12px 2px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.admin-side-user {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  gap: 9px;
  align-items: center;
  padding: 5px 8px 10px;
}
.admin-side-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #fff;
  color: #0129b9;
  font-size: 12px;
  font-weight: 1000;
}
.admin-side-user strong,
.admin-side-user small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-side-user strong { font-size: 10.5px; }
.admin-side-user small { margin-top: 2px; color: rgba(255,255,255,.4); font-size: 8.5px; }
.admin-sidebar .admin-side-logout {
  color: rgba(255,255,255,.52);
}
.admin-sidebar .admin-side-logout:hover {
  background: rgba(254,105,2,.10);
  color: #fff;
}
.admin-sidebar .admin-side-logout:hover .admin-side-icon {
  background: rgba(254,105,2,.15);
  color: #ffae78;
}
.admin-main {
  min-width: 0;
  padding: 24px 28px 36px;
}
.admin-top {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 16px;
  color: #667085;
  font-size: 11px;
}
@media (max-width: 980px) {
  .admin-shell { display: block; }
  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    height: auto;
    display: block;
    padding: 9px 12px;
    overflow: visible;
  }
  .admin-side-brand,
  .admin-side-footer,
  .admin-side-section { display: none; }
  .admin-side-nav {
    display: flex !important;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
  }
  .admin-sidebar .admin-side-link {
    width: auto;
    min-width: max-content;
    min-height: 42px;
    margin: 0;
    padding: 6px 10px 6px 7px;
  }
  .admin-sidebar .admin-side-link::before { display: none; }
  .admin-side-icon { width: 29px; height: 29px; flex-basis: 29px; }
  .admin-main { padding: 18px 16px 30px; }
}

/* Admin navigation attention counters */
.admin-sidebar .admin-side-link > strong {
  flex: 1 1 auto;
}
.admin-alert-badge {
  min-width: 21px;
  height: 21px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0 6px;
  border: 2px solid #0f1728;
  border-radius: 999px;
  background: #e11919;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(225, 25, 25, .12), 0 5px 12px rgba(225, 25, 25, .28);
  font-size: 9px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -.02em;
}
.admin-alert-badge[hidden] {
  display: none !important;
}
.admin-sidebar .admin-side-link.has-admin-alert .admin-side-icon {
  position: relative;
}
.admin-sidebar .admin-side-link.has-admin-alert:not(.active) .admin-side-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border: 2px solid #172033;
  border-radius: 50%;
  background: #ff3737;
}
@media (max-width: 980px) {
  .admin-alert-badge {
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-width: 1px;
    font-size: 8px;
  }
}
