* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.25), transparent 35%),
    linear-gradient(135deg, #020617, #0f172a 45%, #111827);
  color: #e5e7eb;
  min-height: 100vh;
}

.page {
  max-width: 1200px;
  margin: auto;
  padding: 28px;
}

.hero {
  background: linear-gradient(135deg, rgba(37,99,235,.35), rgba(15,23,42,.96));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34,197,94,.15);
  color: #86efac;
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 12px;
}

h1 {
  margin: 0;
  font-size: 36px;
}

h2 {
  margin-top: 0;
}

p {
  color: #cbd5e1;
}

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

.card, .panel {
  background: rgba(15,23,42,.82);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.card {
  padding: 24px;
}

.card span {
  display: block;
  font-size: 34px;
  font-weight: bold;
}

.card small {
  color: #94a3b8;
}

.panel {
  padding: 24px;
  margin-bottom: 24px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
}

input {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(2,6,23,.8);
  color: white;
}

button, .actions a, .buttons a, .back {
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

.table {
  display: grid;
  gap: 12px;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(2,6,23,.55);
  border: 1px solid rgba(255,255,255,.08);
}

.row small {
  display: block;
  color: #94a3b8;
  margin-top: 5px;
}

.status {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 12px;
}

.status.gepland {
  background: rgba(250,204,21,.16);
  color: #fde68a;
}

.status.onderweg {
  background: rgba(59,130,246,.18);
  color: #93c5fd;
}

.status.geleverd {
  background: rgba(34,197,94,.18);
  color: #86efac;
}

.actions {
  display: flex;
  gap: 8px;
}

.delivery-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.delivery-card {
  width: 100%;
  max-width: 520px;
  background: rgba(15,23,42,.9);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

.info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.info div {
  background: rgba(2,6,23,.55);
  padding: 14px;
  border-radius: 18px;
}

.info small {
  display: block;
  color: #94a3b8;
}

.qr {
  width: 220px;
  height: 220px;
  background: white;
  padding: 12px;
  border-radius: 20px;
  margin: 12px auto 22px;
}

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

.buttons .done {
  background: #16a34a;
}

.back {
  display: inline-block;
  margin-top: 20px;
  background: rgba(255,255,255,.08);
}

@media (max-width: 800px) {
  .stats, .form, .row, .info, .buttons {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
  }

  .page {
    padding: 16px;
  }
}

#map {
  width: 100%;
  height: 460px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #0f172a;
  color: #e5e7eb;
}

.leaflet-popup-content a {
  color: #93c5fd;
  font-weight: bold;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.feature-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #dbeafe;
  font-weight: 700;
  font-size: 13px;
}

.driver-app {
  max-width: 720px;
  margin: auto;
  padding: 18px;
}

.driver-hero {
  margin-top: 14px;
  padding: 28px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(37,99,235,.45), rgba(15,23,42,.96)),
    radial-gradient(circle at top right, rgba(34,197,94,.25), transparent 35%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
}

.driver-badge {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(34,197,94,.16);
  color: #bbf7d0;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px;
}

.driver-hero h1 {
  font-size: 34px;
  margin: 0;
}

.driver-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.driver-card,
.driver-empty {
  padding: 22px;
  border-radius: 28px;
  background: rgba(15,23,42,.9);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}

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

.driver-top h2 {
  margin: 0;
  font-size: 24px;
}

.driver-top p {
  margin: 8px 0 0;
  color: #cbd5e1;
}

.driver-status {
  white-space: nowrap;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.driver-status.gepland {
  background: rgba(250,204,21,.18);
  color: #fde68a;
}

.driver-status.onderweg {
  background: rgba(59,130,246,.22);
  color: #bfdbfe;
}

.driver-status.geleverd {
  background: rgba(34,197,94,.22);
  color: #bbf7d0;
}

.driver-code {
  margin: 18px 0;
  padding: 13px;
  border-radius: 18px;
  background: rgba(2,6,23,.65);
  color: #93c5fd;
  font-weight: 900;
  letter-spacing: .5px;
  text-align: center;
}

.driver-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.driver-actions a,
.driver-nav a,
.driver-back {
  display: block;
  text-align: center;
  text-decoration: none;
  color: white;
  font-weight: 900;
  border-radius: 18px;
  padding: 15px;
}

.driver-actions .blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.driver-actions .green {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

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

.driver-nav a {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 14px;
}

.driver-back {
  margin: 22px 0 30px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 600px) {
  .driver-app {
    padding: 12px;
  }

  .driver-hero h1 {
    font-size: 28px;
  }

  .driver-top {
    display: grid;
  }

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

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

.proof a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(124,58,237,.18);
  color: #ddd6fe;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.1);
}

.proof-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.proof-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  background:rgba(124,58,237,.18);
  border:1px solid rgba(255,255,255,.08);
  color:#ddd6fe;
}

.cmr-btn{
  background:rgba(37,99,235,.2);
  color:#bfdbfe;
}
