.tracking-hero {
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
}

.tracking-hero .orb {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent2), transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.tracking-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.tracking-hero p {
  color: var(--muted);
  font-size: 1rem;
}

.tracking-search-box {
  background: var(--white);
  border: 1px solid rgba(26, 58, 110, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  max-width: 680px;
  margin: 2.5rem auto;
  box-shadow: var(--shadow);
}

.tracking-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.tracking-input-row .form-group {
  flex: 1;
}

.tracking-input-row input {
  font-size: 1.1rem;
  padding: 0.9rem 1.2rem;
  letter-spacing: 0.05em;
}

.tracking-result {
  max-width: 680px;
  margin: 0 auto 4rem;
  display: none;
}

.tracking-result.visible {
  display: block;
  animation: fadeUp 0.5s ease;
}

.result-header {
  background: var(--white);
  border: 1px solid rgba(26, 58, 110, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.result-header-left h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.result-header-left .resi-num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.85rem;
}

.status-badge.transit {
  background: rgba(255, 209, 102, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 209, 102, 0.3);
}

.status-badge.delivered {
  background: rgba(6, 214, 160, 0.15);
  color: var(--success);
  border: 1px solid rgba(6, 214, 160, 0.3);
}

.status-badge.processing {
  background: rgba(26, 58, 110, 0.12);
  color: var(--navy);
  border: 1px solid rgba(26, 58, 110, 0.25);
}

.status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.5s ease infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.shipment-info {
  background: var(--white);
  border: 1px solid rgba(26, 58, 110, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.info-item label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.info-item span {
  font-size: 1rem;
  font-weight: 600;
}

.timeline-box {
  background: var(--white);
  border: 1px solid rgba(26, 58, 110, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}

.timeline-box h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(26, 58, 110, 0.15);
}

.tl-item {
  display: flex;
  gap: 1.2rem;
  padding: 0 0 1.5rem;
  position: relative;
}

.tl-dot {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  border: 2px solid rgba(26, 58, 110, 0.2);
  background: var(--navy);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-dot.active {
  border-color: var(--navy);
  background: rgba(26, 58, 110, 0.15);
  box-shadow: 0 0 0 4px rgba(26, 58, 110, 0.1);
}

.tl-dot.active::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.tl-content {
  flex: 1;
}

.tl-content .tl-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.tl-content .tl-desc {
  font-size: 0.83rem;
  color: var(--muted);
}

.tl-time {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 0.2rem;
}

@media (max-width: 640px) {
  .tracking-input-row {
    flex-direction: column;
  }

  .result-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .shipment-info {
    grid-template-columns: 1fr 1fr;
  }

  .tracking-search-box {
    padding: 1.5rem;
  }
}