:root {
  --bg: #f7f1e7;
  --panel: rgba(255, 255, 255, 0.84);
  --card: rgba(255, 255, 255, 0.94);
  --text: #18392d;
  --muted: #6c756d;
  --line: rgba(24, 57, 45, 0.1);
  --orange: #ff7a1a;
  --orange-soft: #ffe3cc;
  --green: #184b39;
  --green-soft: #deeee4;
  --cream: #fdf9f3;
  --shadow: 0 24px 60px rgba(70, 53, 31, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 26, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(24, 75, 57, 0.16), transparent 28%),
    linear-gradient(180deg, #fffaf5 0%, var(--bg) 42%, #f2ede3 100%);
}

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

button {
  cursor: pointer;
  border: 0;
}

.app-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px;
}

.hero,
.panel {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}

.hero {
  border-radius: 36px;
  padding: 28px 32px 34px;
}

.topbar,
.panel-header,
.runner-welcome,
.mini-heading,
.hero-actions,
.topbar-actions,
.task-actions,
.estimate-card,
.stats-row,
.route-metadata,
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.hero-copy,
.runner-chip,
.current-order-card,
.driver-stat,
.task-card,
.phone-frame,
.booking-form,
.timeline-list li,
.route-metadata,
.rail-brand,
.copy-block {
  display: flex;
  flex-direction: column;
}

.hero-copy {
  gap: 28px;
  margin-top: 30px;
}

.brand {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.brand h1,
.copy-block h2,
.panel-header h3,
.phone-body h4,
.runner-welcome h4 {
  margin: 0;
  font-family: "Fraunces", serif;
}

.brand h1 {
  font-size: 2rem;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.2), rgba(255, 255, 255, 0.94));
  overflow: hidden;
}

.brand-mark span {
  width: 20px;
  height: 5px;
  border-radius: 999px;
  background: var(--orange);
  transform: skewX(-24deg);
}

.brand-mark span:nth-child(2) {
  width: 15px;
  margin-top: 4px;
}

.brand-mark span:nth-child(3) {
  width: 10px;
  margin-top: 4px;
}

.eyebrow,
.kicker,
.section-label,
.muted {
  margin: 0;
  color: var(--muted);
}

.eyebrow,
.kicker,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 800;
}

.copy-block {
  gap: 16px;
  max-width: 760px;
}

.copy-block h2 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.97;
  max-width: 860px;
}

.lede {
  margin: 0;
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #445148;
}

.hero-stats {
  flex-wrap: wrap;
}

.hero-stats article,
.driver-stat,
.card,
.task-card,
.current-order-card,
.phone-frame {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(57, 43, 26, 0.06);
}

.hero-stats article {
  padding: 18px 22px;
  min-width: 180px;
  flex: 1;
}

.hero-stats span,
.driver-stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-stats strong,
.driver-stat strong,
.estimate-card strong {
  font-size: 1.8rem;
}

.dashboard {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.panel {
  border-radius: 34px;
  padding: 28px;
}

.panel-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.customer-grid {
  grid-template-columns: 290px 1.1fr 1fr;
}

.driver-grid {
  grid-template-columns: 130px 1fr;
}

.phone-frame {
  padding: 16px;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 239, 0.95));
}

.phone-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 6px 8px 16px;
}

.dots {
  display: inline-flex;
  gap: 4px;
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  display: block;
  background: var(--green);
}

.phone-body {
  display: grid;
  gap: 18px;
}

.phone-body h4 {
  font-size: 2rem;
}

.category-list,
.task-list {
  display: grid;
  gap: 12px;
}

.category-item,
.task-card {
  padding: 14px;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 243, 235, 0.92));
  border: 1px solid var(--line);
  border-radius: 18px;
}

.category-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.current-order-card {
  gap: 10px;
  padding: 16px;
}

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

.progress-track span {
  height: 8px;
  border-radius: 999px;
  background: rgba(24, 57, 45, 0.1);
}

.progress-track .active {
  background: linear-gradient(90deg, #2b8a52, #4fb277);
}

.card {
  padding: 20px;
}

.booking-form {
  gap: 14px;
  margin-top: 16px;
}

.booking-form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.booking-form input,
.booking-form textarea,
.booking-form select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(24, 57, 45, 0.12);
  background: #fffdf9;
  padding: 14px 16px;
  color: var(--text);
}

.booking-form textarea {
  resize: vertical;
  min-height: 108px;
}

.estimate-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.12), rgba(255, 255, 255, 0.84));
}

.map-card,
.timeline-card,
.route-preview-card,
.current-task-card,
.available-card {
  min-height: 100%;
}

.customer-tracker {
  display: grid;
  gap: 18px;
}

.map-surface,
.mini-map {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(242, 236, 228, 0.95), rgba(247, 245, 240, 1)),
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(24, 57, 45, 0.045) 28px, rgba(24, 57, 45, 0.045) 30px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(24, 57, 45, 0.045) 28px, rgba(24, 57, 45, 0.045) 30px);
}

.map-surface {
  height: 360px;
  margin-top: 14px;
}

.mini-map {
  height: 180px;
  margin-top: 14px;
}

.route-line {
  position: absolute;
  inset: 18% 19% 20% 14%;
  border: 4px solid transparent;
  border-left-color: var(--green);
  border-bottom-color: var(--green);
  border-right-color: var(--green);
  border-radius: 30px;
  transform: rotate(9deg);
}

.map-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.66);
}

.pickup-pin {
  left: 18%;
  bottom: 18%;
  background: #38a169;
}

.dropoff-pin {
  right: 16%;
  top: 22%;
  background: var(--orange);
}

.runner-chip {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(57, 43, 26, 0.08);
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, #193a2e, #2a7656);
}

.timeline-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  gap: 16px;
}

.timeline-list li {
  position: relative;
  padding-left: 28px;
  gap: 2px;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(24, 57, 45, 0.14);
  box-shadow: 0 0 0 5px rgba(24, 57, 45, 0.05);
}

.timeline-list li.active::before,
.timeline-list li.done::before {
  background: #38a169;
}

.timeline-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 24px;
  width: 2px;
  height: calc(100% + 8px);
  background: rgba(24, 57, 45, 0.1);
}

.runner-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #173f31, #153425);
  color: rgba(255, 255, 255, 0.88);
}

.rail-brand {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rail-nav {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.rail-nav li {
  padding: 12px 14px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.rail-nav .active {
  background: rgba(255, 255, 255, 0.09);
  color: white;
}

.runner-overview,
.runner-content {
  display: grid;
  gap: 18px;
}

.runner-content {
  grid-template-columns: 1.2fr 0.9fr 0.95fr;
  align-items: start;
}

.driver-stat {
  gap: 6px;
  padding: 18px;
}

.driver-stat.accent {
  background: linear-gradient(135deg, #184b39, #255b45);
  color: white;
}

.driver-stat.accent span,
.driver-stat.accent p {
  color: rgba(255, 255, 255, 0.76);
}

.task-card {
  display: grid;
  gap: 10px;
}

.task-card header,
.task-card footer,
.task-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.task-card header strong {
  font-size: 1.02rem;
}

.task-card p,
.task-card small,
.route-metadata p,
.runner-chip p,
.timeline-list p,
.driver-stat p,
.current-order-card p {
  margin: 0;
  color: var(--muted);
}

.checklist {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checklist-item input {
  accent-color: #2f8f59;
  width: 18px;
  height: 18px;
}

.primary-button,
.secondary-button,
.ghost-button,
.link-button {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 800;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, #ff8a2d, #ff6b00);
  box-shadow: 0 14px 28px rgba(255, 122, 26, 0.24);
}

.secondary-button {
  color: var(--green);
  background: rgba(24, 75, 57, 0.09);
}

.ghost-button {
  color: var(--green);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(24, 57, 45, 0.1);
}

.link-button {
  padding: 0;
  color: var(--orange);
  background: transparent;
  font-weight: 800;
}

.wide-button {
  width: 100%;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.86rem;
  font-weight: 800;
  background: rgba(24, 57, 45, 0.08);
}

.status-pill::before,
.online::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #31b46b;
}

.online {
  color: #206e47;
}

.badge {
  background: rgba(255, 122, 26, 0.12);
  color: #b8590b;
}

.badge.success {
  background: rgba(56, 161, 105, 0.12);
  color: #1f7a4d;
}

.task-actions {
  margin-top: 18px;
}

.price {
  font-weight: 800;
}

.hidden {
  display: none;
}

@media (max-width: 1180px) {
  .customer-grid,
  .runner-content {
    grid-template-columns: 1fr;
  }

  .driver-grid {
    grid-template-columns: 1fr;
  }

  .runner-rail {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .rail-nav {
    grid-auto-flow: column;
    overflow-x: auto;
    margin: 0;
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding: 18px;
  }

  .hero,
  .panel {
    padding: 20px;
    border-radius: 28px;
  }

  .topbar,
  .panel-header,
  .hero-actions,
  .hero-stats,
  .stats-row,
  .task-actions,
  .estimate-card {
    flex-direction: column;
    align-items: stretch;
  }

  .customer-grid {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
