/* ─── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --paper:   #f5f3ee;
  --surface: #ffffff;
  --ink:     #0a0a0f;
  --mid:     #6b6b7a;
  --border:  rgba(10,10,15,.10);
  --accent:  #ff4d1c;
  --accent2: #0066ff;
  --green:   #00c566;
  --yellow:  #f5a623;
  --red:     #e53935;
  --font-d:  'Syne', sans-serif;
  --font-b:  'DM Sans', sans-serif;
  --nav-h:   72px;
  --ease:    cubic-bezier(.25,.46,.45,.94);
  --spring:  cubic-bezier(.34,1.56,.64,1);
  --sh-sm:   0 1px 4px rgba(0,0,0,.06), 0 2px 12px rgba(0,0,0,.04);
  --sh-md:   0 4px 20px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --sh-lg:   0 8px 48px rgba(0,0,0,.12);
  --sh-xl:   0 24px 80px rgba(0,0,0,.16);
}

/* ─── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all .15s var(--ease); }
button { cursor: pointer; border: none; outline: none; font-family: var(--font-b); transition: all .15s var(--ease); }
input, select, textarea { font-family: var(--font-b); outline: none; }

/* ─── Typography ────────────────────────────────────────────────────────────── */
.display-font { font-family: var(--font-d); }

h1, h2, h3 { font-family: var(--font-d); font-weight: 800; }

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(245,243,238,.88);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  transition: box-shadow .2s var(--ease);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-right: 16px;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  transition: all .15s var(--ease);
}

.nav-link:hover { color: var(--ink); background: rgba(10,10,15,.05); }

.nav-link.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-sm);
}

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

.btn-ghost {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border);
  transition: all .15s var(--ease);
}

.btn-ghost:hover {
  background: rgba(10,10,15,.05);
  border-color: rgba(10,10,15,.15);
}

.btn-primary {
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: none;
  transition: all .15s var(--ease);
}

.btn-primary:hover {
  background: #1a1a2e;
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}

.btn-accent {
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  transition: all .15s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-accent:hover {
  background: #e63d0c;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,77,28,.3);
}

.btn-accent:active { transform: translateY(0); }

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

/* ─── Page wrapper ──────────────────────────────────────────────────────────── */
.page-content {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ─── Buttons general ───────────────────────────────────────────────────────── */
.btn-outline {
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid rgba(10,10,15,.2);
  transition: all .15s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  border-color: rgba(10,10,15,.35);
  background: rgba(10,10,15,.04);
  transform: translateY(-1px);
}

.btn-green {
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border: none;
  transition: all .15s var(--ease);
  width: 100%;
}

.btn-green:hover {
  background: #00b05a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,197,102,.3);
}

/* ─── Input fields ──────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
}

.form-input {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink);
  transition: all .15s var(--ease);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,77,28,.08);
}

.form-input::placeholder { color: var(--mid); }

/* ─── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--sh-sm);
}

.card-sm {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--sh-sm);
}

/* ─── Badges / Pills ────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}

.badge-dark {
  background: var(--ink);
  color: #fff;
}

.badge-green {
  background: rgba(0,197,102,.12);
  color: #00a855;
}

.badge-accent {
  background: rgba(255,77,28,.1);
  color: var(--accent);
}

.badge-blue {
  background: rgba(0,102,255,.1);
  color: var(--accent2);
}

.badge-yellow {
  background: rgba(245,166,35,.12);
  color: #d4890a;
}

.badge-red {
  background: rgba(229,57,53,.1);
  color: var(--red);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-anim 1.8s ease-in-out infinite;
}

.pulse-dot-orange {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-anim 1.2s ease-in-out infinite;
}

@keyframes pulse-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

/* ─── Status pills ──────────────────────────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.status-leveret { background: rgba(0,197,102,.12); color: #00a855; }
.status-transit { background: rgba(0,102,255,.1); color: var(--accent2); }
.status-afventer { background: rgba(245,166,35,.12); color: #d4890a; }
.status-problem { background: rgba(229,57,53,.1); color: var(--red); }

/* ─── Toast ─────────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--sh-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  max-width: 340px;
  pointer-events: all;
  animation: toast-in .25s var(--spring) forwards;
}

.toast.toast-ok { background: var(--green); }
.toast.toast-error { background: var(--red); }
.toast.toast-out { animation: toast-out .3s var(--ease) forwards; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(8px) scale(.95); }
}

/* ─── Modal ─────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,10,15,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border-radius: 28px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--sh-xl);
  transform: translateY(16px) scale(.97);
  transition: transform .25s var(--spring);
}

.modal-backdrop.active .modal {
  transform: translateY(0) scale(1);
}

/* ─── Scroll animations ─────────────────────────────────────────────────────── */
.sa {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.sa.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Section layout ────────────────────────────────────────────────────────── */
.section {
  padding: 100px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.hero-left {
  background: var(--paper);
  padding: 80px 52px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-right {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px;
}

.hero-h1 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(52px, 5.5vw, 84px);
  letter-spacing: -2.5px;
  line-height: 0.97;
  margin: 20px 0 22px;
  color: var(--ink);
}

.hero-h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 17px;
  color: var(--mid);
  max-width: 400px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.hero-stat {
  padding-right: 20px;
}

.hero-stat:not(:last-child) {
  border-right: 1px solid var(--border);
  margin-right: 20px;
}

.hero-stat-val {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.hero-stat-lbl {
  font-size: 12px;
  color: var(--mid);
  margin-top: 2px;
}

/* ─── Hero Right Visual ─────────────────────────────────────────────────────── */
.hero-visual {
  width: 100%;
  max-width: 480px;
}

.rate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--sh-sm);
  margin-bottom: 10px;
  transition: all .2s var(--ease);
  cursor: pointer;
}

.rate-card:hover { box-shadow: var(--sh-md); transform: translateX(3px); }

.rate-card.best {
  border-color: rgba(0,197,102,.3);
  background: rgba(0,197,102,.03);
}

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

.carrier-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-d);
}

.carrier-gls   { background: rgba(255,193,7,.15);  color: #d4890a; }
.carrier-pn    { background: rgba(0,102,255,.1);    color: var(--accent2); }
.carrier-dao   { background: rgba(229,57,53,.1);    color: var(--red); }
.carrier-bring { background: rgba(0,197,102,.1);    color: #009f52; }
.carrier-ups   { background: rgba(90,60,20,.1);     color: #5a3c14; }

.carrier-name { font-weight: 600; font-size: 14px; }
.carrier-service { font-size: 12px; color: var(--mid); margin-top: 1px; }

.rate-price {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.3px;
}

/* ─── Features section ──────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 36px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: all .2s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
}

.feature-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.feature-text {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.65;
}

/* ─── Section headings ──────────────────────────────────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(36px, 3.5vw, 52px);
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--mid);
  max-width: 500px;
  line-height: 1.65;
}

/* ─── CTA section ───────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--ink);
  border-radius: 28px;
  padding: 80px 60px;
  text-align: center;
  color: #fff;
  margin: 0 32px 80px;
}

.cta-title {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 60px);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,.6);
  margin-bottom: 36px;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 13px;
  color: var(--mid);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: 13px;
  color: var(--mid);
  transition: color .15s;
}

.footer-link:hover { color: var(--ink); }

/* ─── Booking page ──────────────────────────────────────────────────────────── */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  align-items: start;
}

.booking-main { min-width: 0; }

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.step:last-child { flex: 0; }

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--mid);
  background: var(--surface);
  flex-shrink: 0;
  transition: all .2s var(--ease);
}

.step-circle.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,77,28,.08);
}

.step-circle.done {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  white-space: nowrap;
  transition: color .2s;
}

.step-label.active { color: var(--ink); font-weight: 600; }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  border-radius: 2px;
  transition: background .3s;
}

.step-line.done { background: var(--green); }

/* Booking cards */
.booking-section-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
  color: var(--ink);
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.size-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.size-pill {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all .15s var(--ease);
  color: var(--mid);
}

.size-pill:hover { border-color: rgba(10,10,15,.2); color: var(--ink); }
.size-pill.active {
  border-color: var(--accent);
  background: rgba(255,77,28,.06);
  color: var(--accent);
}

/* Rate rows */
.rate-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all .15s var(--ease);
  margin-bottom: 10px;
}

.rate-row:hover { border-color: rgba(10,10,15,.18); box-shadow: var(--sh-sm); }

.rate-row.selected {
  border-color: var(--green);
  background: rgba(0,197,102,.03);
}

.rate-row input[type="radio"] { display: none; }

.rate-info { flex: 1; }
.rate-name { font-weight: 600; font-size: 14px; }
.rate-service { font-size: 12px; color: var(--mid); margin-top: 2px; }

.reliability-dots {
  display: flex;
  gap: 3px;
}

.r-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.r-dot.filled { background: var(--green); }

.rate-eta { font-size: 12px; color: var(--mid); text-align: right; }
.rate-eta strong { display: block; color: var(--ink); font-size: 13px; }

.rate-price-tag {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.3px;
  min-width: 60px;
  text-align: right;
}

/* Addon rows */
.addon-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all .15s var(--ease);
  margin-bottom: 10px;
}

.addon-row:hover { border-color: rgba(10,10,15,.18); }

.addon-row.active {
  border-color: var(--accent);
  background: rgba(255,77,28,.04);
}

.addon-icon { font-size: 22px; }
.addon-info { flex: 1; }
.addon-name { font-weight: 600; font-size: 14px; }
.addon-desc { font-size: 12px; color: var(--mid); margin-top: 2px; }
.addon-price { font-weight: 700; font-size: 14px; color: var(--ink); }

.addon-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all .15s var(--ease);
}

.addon-row.active .addon-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Payment fields */
.payment-card-preview {
  background: linear-gradient(135deg, var(--ink), #1a1a3e);
  border-radius: 18px;
  padding: 28px;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.payment-card-preview::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}

.card-chip { font-size: 28px; margin-bottom: 20px; }
.card-number { font-size: 18px; letter-spacing: 3px; font-family: monospace; margin-bottom: 16px; }
.card-bottom { display: flex; justify-content: space-between; font-size: 12px; opacity: .7; }

.trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 14px;
  border-radius: 10px;
  background: rgba(0,197,102,.06);
  margin-top: 16px;
  font-size: 13px;
  color: var(--mid);
}

/* Confirmation */
.success-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0,197,102,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
  animation: pop-in .5s var(--spring) forwards;
}

@keyframes pop-in {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.label-preview {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  font-family: monospace;
  font-size: 13px;
  position: relative;
  overflow: hidden;
}

.barcode-sim {
  height: 48px;
  background: repeating-linear-gradient(90deg, #000 0px, #000 2px, #fff 2px, #fff 5px, #000 5px, #000 6px, #fff 6px, #fff 9px, #000 9px, #000 12px, #fff 12px, #fff 14px);
  border-radius: 2px;
  margin: 12px 0;
  opacity: .9;
}

/* Booking sidebar */
.booking-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  height: calc(100vh - var(--nav-h) - 40px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--sh-sm);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.order-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  color: var(--mid);
}

.order-line.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 14px;
  color: var(--ink);
}

.order-total-price {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--accent);
}

.sidebar-hint {
  background: rgba(255,77,28,.06);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--accent);
  margin-top: 16px;
}

.sidebar-secure {
  font-size: 12px;
  color: var(--mid);
  text-align: center;
  margin-top: 10px;
}

/* ─── Dashboard ─────────────────────────────────────────────────────────────── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.dashboard-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  overflow-y: auto;
}

.sidebar-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 0 12px;
  margin: 16px 0 6px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  cursor: pointer;
  transition: all .15s var(--ease);
  position: relative;
}

.sidebar-nav-item:hover { background: rgba(10,10,15,.05); color: var(--ink); }

.sidebar-nav-item.active {
  background: rgba(255,77,28,.08);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
}

.sidebar-logout {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  padding: 36px 40px;
  background: var(--paper);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.dashboard-greeting {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
  flex: 1;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.kpi-card {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 22px 24px;
  box-shadow: var(--sh-sm);
}

.kpi-icon { font-size: 24px; margin-bottom: 10px; }

.kpi-val {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 4px;
}

.kpi-label { font-size: 13px; color: var(--mid); }

.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
}

.kpi-delta.up { color: var(--green); }
.kpi-delta.down { color: var(--red); }

/* Shipments table */
.table-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.table-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.table-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 16px;
  flex: 1;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  pointer-events: none;
}

.search-input {
  padding: 8px 14px 8px 36px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  background: var(--paper);
  width: 200px;
  transition: all .15s var(--ease);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,77,28,.08);
  outline: none;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  padding: 11px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
  background: rgba(245,243,238,.5);
}

.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(10,10,15,.05);
  color: var(--ink);
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr { transition: background .1s; }
.data-table tbody tr:hover { background: rgba(245,243,238,.5); }
.data-table tr.problem-row { cursor: pointer; }

.tracking-id-mono {
  font-family: monospace;
  font-size: 12px;
  color: var(--mid);
}

.action-btn {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all .15s;
  color: var(--ink);
}

.action-btn:hover { background: var(--paper); }

/* Dashboard bottom grid */
.dashboard-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.progress-row {
  margin-bottom: 14px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.progress-track {
  height: 8px;
  border-radius: 100px;
  background: var(--paper);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 100px;
  transition: width .8s var(--ease);
}

/* ─── Tracking page ─────────────────────────────────────────────────────────── */
.tracking-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}

.tracking-header {
  text-align: center;
  margin-bottom: 48px;
}

.tracking-search {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 28px auto 0;
}

.tracking-input {
  flex: 1;
  padding: 13px 20px;
  border-radius: 12px 0 0 12px;
  border: 1.5px solid var(--border);
  border-right: none;
  font-size: 15px;
  font-family: monospace;
  background: var(--surface);
  transition: all .15s;
}

.tracking-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,77,28,.08);
  outline: none;
}

.tracking-search-btn {
  padding: 13px 24px;
  border-radius: 0 12px 12px 0;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .15s;
}

.tracking-search-btn:hover { background: #e63d0c; }

.tracking-card {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
  overflow: hidden;
}

.tracking-card-header {
  background: var(--ink);
  color: #fff;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.track-from, .track-to {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 18px;
}

.track-to { text-align: right; }

.track-arrow {
  font-size: 24px;
  opacity: .6;
}

.track-carrier-info {
  font-size: 12px;
  opacity: .6;
  margin-top: 4px;
}

.tracking-status-bar {
  background: rgba(245,243,238,.06);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 13px;
  opacity: .85;
}

.tracking-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
}

.timeline {
  padding: 32px;
  border-right: 1px solid var(--border);
}

.timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: -8px;
  width: 2px;
  background: var(--border);
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--surface);
  z-index: 1;
}

.timeline-dot.done {
  background: rgba(0,197,102,.1);
  border-color: var(--green);
}

.timeline-dot.live {
  background: rgba(255,77,28,.08);
  border-color: var(--accent);
}

.timeline-content {}

.timeline-msg {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.timeline-msg.pending { color: var(--mid); font-weight: 400; }

.timeline-loc {
  font-size: 12px;
  color: var(--mid);
  margin-top: 2px;
}

.timeline-time {
  font-size: 12px;
  color: var(--mid);
  margin-top: 2px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,77,28,.1);
  color: var(--accent);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  margin-left: 8px;
}

.tracking-panel {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eta-box {
  background: rgba(0,197,102,.06);
  border: 1px solid rgba(0,197,102,.2);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.eta-label { font-size: 12px; color: var(--mid); margin-bottom: 6px; }

.eta-day {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--green);
}

.eta-time { font-size: 14px; color: var(--mid); margin-top: 4px; }

.eta-progress {
  margin-top: 14px;
  height: 6px;
  background: rgba(0,197,102,.15);
  border-radius: 100px;
  overflow: hidden;
}

.eta-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 100px;
  width: 60%;
}

.notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}

.toggle {
  width: 40px;
  height: 22px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}

.toggle.on { background: var(--green); }
.toggle.off { background: var(--border); }

.toggle::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  transition: left .2s;
}

.toggle.on::after { left: 21px; }
.toggle.off::after { left: 3px; }

.panel-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.action-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: color .15s;
}

.action-link:last-child { border-bottom: none; }
.action-link:hover { color: var(--accent2); }
.action-link.danger { color: var(--red); }
.action-link.danger:hover { color: #c62828; }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 60px 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-sidebar { position: static; height: auto; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-layout { flex-direction: column; }
  .dashboard-sidebar { width: 100%; position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .tracking-body { grid-template-columns: 1fr; }
  .tracking-panel { border-top: 1px solid var(--border); }
  .dashboard-bottom { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 600px) {
  .nav { padding: 0 16px; }
  .nav-links { display: none; }
  .section { padding: 60px 20px; }
  .cta-section { padding: 48px 24px; margin: 0 16px 60px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .tracking-card-header { grid-template-columns: 1fr; text-align: center; }
  .track-to { text-align: center; }
}
