:root {
  --bg: #070b12;
  --panel: rgba(12, 18, 30, 0.78);
  --panel-strong: rgba(16, 24, 39, 0.96);
  --text: #eef4ff;
  --muted: #8ea0b8;
  --line: rgba(255, 255, 255, 0.12);
  --brand: #f8c24a;
  --brand-2: #ff7a1a;
  --good: #39d98a;
  --danger: #ff5f68;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(248, 194, 74, 0.16), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(255, 122, 26, 0.14), transparent 28%),
    linear-gradient(135deg, #06070b 0%, #0b1220 45%, #080d16 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 54px);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.72);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #080b10;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 30px rgba(248, 194, 74, 0.25);
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.tab {
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
}

.tab.active {
  color: #111827;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  max-width: 780px;
  font-size: clamp(38px, 6vw, 74px);
  letter-spacing: -0.07em;
}

h2 {
  font-size: 26px;
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 14px;
}

.primary,
.ghost {
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 900;
}

.primary {
  color: #0b0f16;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 40px rgba(248, 194, 74, 0.18);
}

.ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.small {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.wide {
  width: 100%;
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 7px rgba(248, 194, 74, 0.13);
}

.status-row.ok .dot {
  background: var(--good);
  box-shadow: 0 0 0 7px rgba(57, 217, 138, 0.13);
}

.status-row.bad .dot {
  background: var(--danger);
  box-shadow: 0 0 0 7px rgba(255, 95, 104, 0.13);
}

.card,
.map-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.map-card {
  overflow: hidden;
  min-height: 420px;
}

.map-toolbar,
.map-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  padding: 16px 18px;
}

.map-toolbar strong {
  color: var(--text);
}

.map {
  position: relative;
  height: 330px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 30% 35%, rgba(248, 194, 74, 0.16), transparent 18%),
    radial-gradient(circle at 70% 65%, rgba(255, 122, 26, 0.15), transparent 20%),
    #101827;
  background-size:
    42px 42px,
    42px 42px,
    auto,
    auto,
    auto;
}

.route-line {
  position: absolute;
  left: 23%;
  top: 42%;
  width: 54%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: rotate(-18deg);
  box-shadow: 0 0 30px rgba(248, 194, 74, 0.35);
}

.pin,
.car {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #0b0f16;
  font-weight: 900;
  background: white;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.pickup {
  left: 21%;
  top: 53%;
}

.dropoff {
  right: 18%;
  top: 29%;
  background: var(--brand);
}

.car {
  left: 50%;
  top: 39%;
  width: 54px;
  height: 54px;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.96);
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard {
  grid-template-columns: 360px 1fr;
}

.orders-card {
  grid-column: 1 / -1;
}

.card {
  padding: 22px;
}

.card-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.badge {
  color: #0b0f16;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(248, 194, 74, 0.94);
}

.form {
  display: grid;
  gap: 14px;
}

.row.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  outline: none;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.06);
}

textarea {
  resize: vertical;
}

pre {
  overflow: auto;
  min-height: 330px;
  margin: 14px 0 0;
  color: #d7e8ff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.22);
  white-space: pre-wrap;
}

.mini-info {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.stats strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.stats span {
  color: var(--muted);
  font-size: 13px;
}

.orders,
.drivers {
  display: grid;
  gap: 12px;
}

.order-item,
.driver-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.order-top,
.driver-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-top strong,
.driver-top strong {
  font-size: 18px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-actions button {
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  border-radius: 12px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.07);
}

.empty {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: 360px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  color: #0b0f16;
  font-weight: 900;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .topbar,
  .hero,
  .grid.two,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .tabs {
    overflow: auto;
  }

  .hero {
    display: grid;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row.two {
    grid-template-columns: 1fr;
  }
}
