.track-main {
  min-height: calc(100vh - 72px - 80px);
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, #f7f8fa 0%, #fff 100%);
}
.track-hero { text-align: center; margin-bottom: 2.5rem; }
.track-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .75rem; }
.track-lede { color: #6b7280; font-size: 1.05rem; margin: 0; }

.track-form-wrap { max-width: 580px; margin: 0 auto 2.5rem; }
.track-form {
  display: flex;
  gap: .75rem;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  padding: .4rem .4rem .4rem 1.25rem;
  box-shadow: 0 4px 20px rgba(11,37,69,.07);
  transition: border-color .15s, box-shadow .15s;
}
.track-form:focus-within { border-color: #0b2545; box-shadow: 0 4px 24px rgba(11,37,69,.13); }
.track-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-family: inherit;
  letter-spacing: .05em;
  color: #1f2937;
  outline: none;
  min-width: 0;
  text-transform: uppercase;
}
.track-form input::placeholder { text-transform: none; color: #9ca3af; letter-spacing: 0; }
.track-form button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  background: #0b2545;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.track-form button:hover { background: #13315c; }
.track-form button:disabled { background: #6b7280; cursor: not-allowed; }

.track-result { max-width: 680px; margin: 0 auto; }

.track-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-weight: 500;
  text-align: center;
}

.shipment-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(11,37,69,.07);
}

.ship-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ship-code {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0b2545;
  letter-spacing: .05em;
  margin-bottom: .25rem;
}
.ship-route { color: #6b7280; font-size: .95rem; margin-bottom: .2rem; }
.ship-desc { color: #9ca3af; font-size: .88rem; }

.status-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.status-transit { background: #dbeafe; color: #1d4ed8; }
.status-delivered { background: #dcfce7; color: #15803d; }
.status-pending { background: #fef9c3; color: #854d0e; }
.status-exception { background: #fee2e2; color: #b91c1c; }

.ship-progress { margin-bottom: 1.25rem; }
.prog-labels {
  display: flex;
  justify-content: space-between;
  font-size: .83rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: .4rem;
}
.prog-bar { height: 10px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #0b2545, #2a5298);
  border-radius: 99px;
  transition: width .6s ease;
}

.ship-eta {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  color: #6b7280;
  padding: .85rem 1rem;
  background: #f7f8fa;
  border-radius: 10px;
  margin-bottom: 1.75rem;
}
.ship-eta svg { flex-shrink: 0; color: #f59e0b; }
.ship-eta strong { color: #1f2937; }

.ms-list { list-style: none; padding: 0; margin: 0; position: relative; }
.ms-list::before {
  content: '';
  position: absolute;
  left: 11px; top: 12px; bottom: 12px;
  width: 2px;
  background: #e5e7eb;
  z-index: 0;
}
.ms-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .6rem 0;
  position: relative;
  z-index: 1;
}
.ms-dot {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .7rem;
  transition: background .2s;
}
.ms-item.done .ms-dot { background: #0b2545; border-color: #0b2545; }
.ms-item.current .ms-dot { background: #f59e0b; border-color: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.2); }
.ms-body { padding-top: .15rem; }
.ms-label { font-weight: 600; font-size: .95rem; color: #1f2937; display: flex; align-items: center; gap: .5rem; }
.ms-item:not(.done) .ms-label { color: #9ca3af; font-weight: 500; }
.ms-now {
  background: #f59e0b;
  color: #1a1300;
  font-size: .68rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 4px;
  letter-spacing: .05em;
}
.ms-meta { font-size: .83rem; color: #9ca3af; margin-top: .1rem; }
.ms-item.done .ms-meta { color: #6b7280; }

@media (max-width: 600px) {
  .shipment-card { padding: 1.25rem; }
  .ship-header { flex-direction: column; }
  .track-form { border-radius: 14px; flex-direction: column; align-items: stretch; }
  .track-form input { padding: .4rem 0; }
  .track-form button { border-radius: 10px; justify-content: center; }
}
