:root {
  --sd-blue-950: #071427;
  --sd-blue-900: #0b1f3f;
  --sd-blue-850: #0d2a5c;
  --sd-blue-800: #113b82;
  --sd-blue-700: #1554b7;
  --sd-blue-600: #1d74f5;
  --sd-blue-500: #3b8cff;
  --sd-cyan-400: #22d3ee;
  --sd-sky-300: #7dd3fc;
  --sd-ink: #102033;
  --sd-muted: #60728a;
  --sd-border: rgba(148, 163, 184, .28);
  --sd-card: rgba(255,255,255,.92);
  --sd-glass: rgba(255,255,255,.72);
  --sd-shadow: 0 24px 70px rgba(8, 22, 48, .18);
  --sd-radius-xl: 28px;
  --sd-radius-lg: 20px;
  --sd-radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--sd-ink);
  font-family: Inter, Aptos, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(34, 211, 238, .26), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(59, 140, 255, .32), transparent 32%),
    radial-gradient(circle at 55% 80%, rgba(21, 84, 183, .22), transparent 34%),
    linear-gradient(135deg, #061226 0%, #09224a 42%, #0f4aa0 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 70%);
}

a {
  color: inherit;
}

main.sd-shell {
  width: min(1440px, calc(100% - 34px));
  margin: 0 auto;
  padding: 26px 0 42px;
  position: relative;
  z-index: 1;
}

.sd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(7, 20, 39, .42);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}

.sd-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.03em;
}

.sd-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, var(--sd-cyan-400), var(--sd-blue-600));
  box-shadow: 0 12px 34px rgba(34, 211, 238, .28);
  color: white;
  font-weight: 900;
}

.sd-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sd-nav a {
  text-decoration: none;
  color: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.14);
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255,255,255,.06);
}

.sd-nav a:hover {
  color: white;
  border-color: rgba(125, 211, 252, .6);
  background: rgba(255,255,255,.12);
}

.sd-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(28px, 5vw, 58px);
  margin-bottom: 18px;
  color: white;
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(135deg, rgba(8, 31, 70, .92), rgba(14, 72, 152, .86)),
    radial-gradient(circle at 82% 22%, rgba(34, 211, 238, .34), transparent 36%);
  box-shadow: var(--sd-shadow);
}

.sd-hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  right: -170px;
  top: -170px;
  background:
    radial-gradient(circle, rgba(125,211,252,.34), transparent 62%);
}

.sd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #dff8ff;
  border: 1px solid rgba(125,211,252,.36);
  background: rgba(255,255,255,.09);
}

.sd-hero h1 {
  position: relative;
  max-width: 860px;
  margin: 0;
  font-size: clamp(38px, 6vw, 74px);
  line-height: .95;
  letter-spacing: -.07em;
}

.sd-hero p {
  position: relative;
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.55;
  color: rgba(255,255,255,.84);
}

.sd-hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.sd-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.sd-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--sd-radius-xl);
  background: var(--sd-card);
  border: 1px solid rgba(255,255,255,.68);
  box-shadow: 0 18px 55px rgba(8, 22, 48, .14);
  backdrop-filter: blur(18px);
}

.sd-card.pad {
  padding: 22px;
}

.sd-card h2,
.sd-card h3 {
  margin: 0 0 8px;
  color: #102033;
  letter-spacing: -.035em;
}

.sd-card p {
  color: var(--sd-muted);
  line-height: 1.55;
}

.sd-module-card {
  grid-column: span 4;
  min-height: 250px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sd-module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(59,140,255,.18), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.35), transparent);
  pointer-events: none;
}

.sd-module-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sd-blue-600), var(--sd-cyan-400));
  box-shadow: 0 14px 36px rgba(29, 116, 245, .28);
}

.sd-module-card > * {
  position: relative;
}

.sd-two-col {
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 16px;
}

.sd-panel {
  border-radius: var(--sd-radius-xl);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 18px 58px rgba(8,22,48,.16);
  padding: 20px;
}

.sd-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sd-panel-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.04em;
}

.sd-panel-subtitle {
  margin: 5px 0 0;
  color: var(--sd-muted);
  font-size: 13px;
  line-height: 1.45;
}

.sd-form-grid {
  display: grid;
  gap: 10px;
}

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

label {
  display: grid;
  gap: 6px;
  color: #60728a;
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d7e2f0;
  border-radius: 14px;
  padding: 11px 12px;
  background: #f8fbff;
  color: #102033;
  outline: none;
  transition: .18s ease;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sd-blue-500);
  box-shadow: 0 0 0 4px rgba(59,140,255,.14);
  background: white;
}

button,
a.btn,
.sd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 11px 15px;
  background: linear-gradient(135deg, var(--sd-blue-700), var(--sd-blue-500));
  color: white;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(29, 116, 245, .22);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

button:hover,
a.btn:hover,
.sd-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 42px rgba(29, 116, 245, .32);
}

button.secondary,
.sd-btn.secondary {
  background: #e8f0fb;
  color: #14345f;
  box-shadow: none;
}

button.dark,
.sd-btn.dark {
  background: linear-gradient(135deg, #061226, #123b73);
}

.sd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.driver,
.trip {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9e6f5;
  border-radius: 18px;
  padding: 14px;
  margin: 10px 0;
  background:
    linear-gradient(180deg, #ffffff, #f6faff);
  box-shadow: 0 12px 28px rgba(8,22,48,.08);
}

.driver b,
.trip b {
  color: #102033;
}

iframe {
  width: 100%;
  min-height: 410px;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 24px;
  background: #eef6ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}

pre {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 420px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #d9e6f5;
  background: #071427;
  color: #dff8ff;
  font-size: 12px;
  line-height: 1.55;
}

.sd-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.sd-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.sd-stat {
  border-radius: 18px;
  border: 1px solid #d9e6f5;
  padding: 14px;
  background:
    linear-gradient(180deg, #ffffff, #f6faff);
}

.sd-stat span {
  display: block;
  color: #60728a;
  font-size: 12px;
  font-weight: 750;
}

.sd-stat b {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  letter-spacing: -.05em;
  color: #113b82;
}

.sd-table-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid #d9e6f5;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
  background: white;
}

th,
td {
  padding: 12px 13px;
  text-align: left;
  border-bottom: 1px solid #e7eef8;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #33506f;
  background: #f3f8ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .045em;
}

tr:hover td {
  background: #f8fbff;
}

.sd-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
  background: #dbeafe;
  color: #1d4ed8;
}

.sd-footer-note {
  margin-top: 18px;
  color: rgba(255,255,255,.75);
  text-align: center;
  font-size: 13px;
}

#linksBox {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

#driversBox,
#tripsBox {
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .sd-module-card {
    grid-column: span 12;
  }

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

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

  .sd-nav {
    display: none;
  }

  .sd-topbar {
    border-radius: 22px;
  }
}

@media (max-width: 680px) {
  main.sd-shell {
    width: min(100% - 20px, 1440px);
    padding-top: 12px;
  }

  .sd-hero {
    border-radius: 24px;
    padding: 26px 20px;
  }

  .sd-panel,
  .sd-card.pad {
    padding: 16px;
  }

  input,
  select,
  textarea,
  button,
  a.btn,
  .sd-btn {
    font-size: 14px;
  }

  iframe {
    min-height: 320px;
  }
}
