/* ===== TRACK PAGE ===== */
.track-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* ===== HERO ===== */
.track-hero {
  text-align: center;
  padding: 24px 16px 20px;
}
.track-hero-icon {
  font-size: 64px;
  margin-bottom: 12px;
  animation: float 3s ease infinite;
  display: inline-block;
}
.track-hero h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--amazon-dark);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.track-hero p {
  font-size: 13px;
  color: var(--muted);
}

.track-search {
  background: white;
  border-radius: 16px;
  padding: 20px 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  animation: fadeInUp 0.5s ease;
}

.track-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  padding: 10px 12px;
  background: #fef8e7;
  border-radius: 8px;
  border-left: 3px solid var(--amazon-yellow);
  line-height: 1.4;
}

/* ===== ORDER CARD ===== */
.track-card {
  background: white;
  border-radius: 16px;
  padding: 20px 18px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  animation: fadeInUp 0.4s ease;
}

.track-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.track-order-id {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.track-order-id strong {
  color: var(--amazon-dark);
  font-size: 16px;
  display: block;
  margin-top: 4px;
  letter-spacing: 0;
  font-weight: 800;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 44px;
  margin: 8px 0 20px;
}

.timeline-step {
  position: relative;
  padding-bottom: 24px;
}
.timeline-step:last-child { padding-bottom: 0; }

.timeline-step::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: -4px;
  width: 2px;
  background: var(--border);
}
.timeline-step:last-child::before { display: none; }
.timeline-step.done::before { background: var(--amazon-orange); }

.timeline-icon {
  position: absolute;
  left: -44px;
  top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 1;
  transition: all 0.3s;
}
.timeline-step.done .timeline-icon {
  background: var(--amazon-orange);
  border-color: var(--amazon-orange);
  animation: bounce 0.5s;
}
.timeline-step.active .timeline-icon {
  background: var(--amazon-dark);
  border-color: var(--amazon-dark);
  animation: pulseRing 2s infinite;
}

.timeline-content { padding-top: 2px; }
.timeline-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.3s;
}
.timeline-step.done .timeline-title,
.timeline-step.active .timeline-title {
  color: var(--amazon-dark);
}
.timeline-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}

/* ===== ORDER DETAILS ===== */
.track-details {
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px;
  margin-top: 16px;
}
.track-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  gap: 12px;
}
.track-row .k {
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
}
.track-row .v {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}
.track-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 10px;
  font-size: 15px;
  font-weight: 800;
}
.track-row.total .v {
  color: var(--amazon-red);
  font-weight: 800;
}

.track-items-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ===== ERROR ===== */
.track-error {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  animation: fadeInUp 0.4s ease;
}
.track-error-icon {
  font-size: 56px;
  margin-bottom: 12px;
}
.track-error h3 {
  color: var(--amazon-red);
  margin-bottom: 6px;
  font-size: 16px;
}
.track-error p {
  color: var(--muted);
  font-size: 13px;
}

/* ===== BADGES ===== */
.badge-large {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
