.tracking-page {
  min-height: 100vh;
  background: #eef4fb;
}

.tracking-page::before {
  display: none;
}

.tracking-page .page {
  width: min(100%, 1180px);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 18px;
}

.tracking-card {
  width: min(100%, 560px);
  border-radius: 24px;
  background: #ffffff;
  padding: 46px 32px 40px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(25, 55, 110, 0.12);
}

.tracking-page .eyebrow {
  display: inline-flex;
  width: auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.tracking-page h1 {
  margin: 22px 0 12px;
  color: #0f172a;
  font-size: clamp(31px, 5vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.tracking-page .lead {
  max-width: none;
  margin: 0;
  color: #53637c;
  font-size: 16px;
  line-height: 1.6;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 8px;
  border-radius: 18px;
  background: #fbfdff;
  outline: 1px solid #dfe7f2;
}

.tracking-page input {
  min-width: 0;
  border-radius: 14px;
  background: transparent;
  padding: 15px 18px;
  color: #0f172a;
  outline: none;
  transform: none;
}

.tracking-page input:focus {
  background: transparent;
  outline: none;
  transform: none;
}

.tracking-page input::placeholder {
  color: #98a3b5;
}

.tracking-page button {
  width: auto;
  min-width: 100px;
  margin: 0;
  border-radius: 15px;
  background: #2f63e6;
  padding: 15px 23px;
  color: #ffffff;
  box-shadow: none;
}

.tracking-page button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(47, 99, 230, 0.22);
}

.result {
  display: none;
  margin-top: 30px;
  border-radius: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  outline: none;
}

.current-status {
  border-radius: 22px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  padding: 24px 22px;
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(124, 58, 237, 0.2);
}

.current-status.status-delivered { background: linear-gradient(135deg, #14532d 0%, #15803d 100%); box-shadow: 0 18px 36px rgba(20, 83, 45, 0.22); }
.current-status.status-delayed { background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%); box-shadow: 0 18px 36px rgba(185, 28, 28, 0.22); }
.current-status.status-processing { background: linear-gradient(135deg, #6d28d9 0%, #a855f7 100%); box-shadow: 0 18px 36px rgba(109, 40, 217, 0.22); }
.current-status.status-shipped { background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%); box-shadow: 0 18px 36px rgba(2, 132, 199, 0.22); }
.current-status.status-bangladesh,
.current-status.status-bd-custom { background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%); box-shadow: 0 18px 36px rgba(8, 145, 178, 0.22); }
.current-status.status-ready { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); box-shadow: 0 18px 36px rgba(217, 119, 6, 0.22); }

.current-status span {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  opacity: 0.9;
}

.current-status strong {
  display: block;
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.timeline {
  position: relative;
  margin-top: 26px;
  padding-left: 56px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  bottom: 34px;
  width: 3px;
  border-radius: 999px;
  background: #e5eaf1;
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 90px;
  padding-bottom: 28px;
}

.timeline-row:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -56px;
  top: -4px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #e5eaf1;
  color: #9aa7b8;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 0 0 6px #f8fbff;
}

.timeline-row.done .timeline-marker {
  background: #1db95c;
  color: #ffffff;
  box-shadow: 0 0 0 6px #dcfce7;
}

.timeline-row.current .timeline-marker {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 0 0 6px #ede9fe;
}

.timeline-row.current.status-delivered .timeline-marker { background: #14532d; box-shadow: 0 0 0 6px #dcfce7; }
.timeline-row.current.status-delayed .timeline-marker { background: #dc2626; box-shadow: 0 0 0 6px #fee2e2; }
.timeline-row.current.status-processing .timeline-marker { background: #7c3aed; box-shadow: 0 0 0 6px #ede9fe; }
.timeline-row.current.status-shipped .timeline-marker { background: #0284c7; box-shadow: 0 0 0 6px #e0f2fe; }
.timeline-row.current.status-bangladesh .timeline-marker,
.timeline-row.current.status-bd-custom .timeline-marker { background: #0891b2; box-shadow: 0 0 0 6px #cffafe; }
.timeline-row.current.status-ready .timeline-marker { background: #d97706; box-shadow: 0 0 0 6px #fef3c7; }

.timeline-content {
  border-radius: 18px;
  background: #fbfdff;
  padding: 17px 18px;
  outline: 1px solid #e4ebf4;
}

.timeline-row.current .timeline-content {
  background: #f5f3ff;
  outline-color: #c4b5fd;
}

.timeline-row.current.status-delivered .timeline-content { background: #f0fdf4; outline-color: #86efac; }
.timeline-row.current.status-delayed .timeline-content { background: #fef2f2; outline-color: #fecaca; }
.timeline-row.current.status-processing .timeline-content { background: #f5f3ff; outline-color: #c4b5fd; }
.timeline-row.current.status-shipped .timeline-content { background: #f0f9ff; outline-color: #bae6fd; }
.timeline-row.current.status-bangladesh .timeline-content,
.timeline-row.current.status-bd-custom .timeline-content { background: #ecfeff; outline-color: #a5f3fc; }
.timeline-row.current.status-ready .timeline-content { background: #fffbeb; outline-color: #fde68a; }

.timeline-content h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.timeline-content p {
  margin: 0;
  color: #53637c;
  font-size: 14px;
  line-height: 1.55;
}

.result-meta {
  display: block;
  margin-top: 18px;
  text-align: center;
}

.message {
  margin: 14px 0 8px;
  color: #172033;
  font-weight: 600;
  line-height: 1.6;
}

.meta {
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 560px) {
  .tracking-card {
    padding: 34px 18px;
    border-radius: 22px;
  }

  .search-box {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .tracking-page button {
    width: 100%;
  }

  .timeline {
    padding-left: 48px;
  }

  .timeline-marker {
    left: -48px;
  }
}
