* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  text-align: center;
  padding: 18px 0 10px;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 20px;
}
.logo { height: 40px; width: auto; }
.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #e8a0bf;
}

/* States (loading, search, error) */
.state-view {
  text-align: center;
  padding: 60px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.state-view h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.state-view p { font-size: 14px; color: #777; margin-bottom: 20px; max-width: 340px; }
.hidden { display: none !important; }

/* Spinner */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid #e0e0e0;
  border-top-color: #2BAF6B;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-bottom: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Search */
.search-icon-wrap { margin-bottom: 16px; }
.search-form { width: 100%; max-width: 380px; }
.search-bar {
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e0e0e0;
  transition: border-color .2s;
}
.search-bar:focus-within { border-color: #2BAF6B; }
.search-bar input {
  flex: 1; border: none; padding: 13px 16px;
  font-size: 15px; font-family: inherit; color: #333;
  outline: none; background: transparent; min-width: 0;
}
.search-bar input::placeholder { color: #bbb; }
.search-bar button {
  background: #2BAF6B; color: #fff; border: none;
  padding: 13px 24px; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: background .2s;
}
.search-bar button:hover { background: #239B5C; }
.search-hint { display: block; font-size: 12px; color: #aaa; margin-top: 8px; }

/* Error */
.error-icon-wrap { margin-bottom: 14px; }
.error-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-solid, .btn-outline {
  padding: 11px 26px; border-radius: 8px; font-size: 14px;
  font-weight: 600; font-family: inherit; cursor: pointer;
  transition: all .2s; text-decoration: none; border: none;
}
.btn-solid { background: #2BAF6B; color: #fff; }
.btn-solid:hover { background: #239B5C; }
.btn-outline { background: #fff; color: #2BAF6B; border: 2px solid #2BAF6B; }
.btn-outline:hover { background: rgba(43,175,107,.06); }

/* ======================== */
/* PROGRESS BAR (ParcelPanel) */
/* ======================== */
.progress-track {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px 18px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.track-line {
  position: absolute;
  top: 46px;
  left: 56px;
  right: 56px;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  z-index: 0;
}
.track-fill {
  height: 100%;
  background: #2BAF6B;
  border-radius: 3px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
  width: 0;
}

.track-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20%;
}

.track-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #e8e8e8;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
  color: #bbb;
  transition: all .3s;
  border: 3px solid #f5f5f5;
}
.track-icon-wrap svg { width: 18px; height: 18px; }

.track-step.completed .track-icon-wrap {
  background: #2BAF6B;
  color: #fff;
  border-color: #fff;
}
.track-step.active .track-icon-wrap {
  background: #2BAF6B;
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(43,175,107,.2);
}

.track-label {
  font-size: 11px;
  font-weight: 600;
  color: #bbb;
  text-align: center;
  transition: color .3s;
}
.track-step.completed .track-label,
.track-step.active .track-label { color: #2BAF6B; }

.track-date {
  font-size: 10px;
  color: #999;
  text-align: center;
  margin-top: 1px;
}

/* ======================== */
/* STATUS HEADING */
/* ======================== */
.status-heading {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}
.status-heading span { color: #2BAF6B; }

/* Status color variants */
.status-heading.s-ordered span { color: #1976D2; }
.status-heading.s-processing span { color: #E65100; }
.status-heading.s-shipped span { color: #2BAF6B; }
.status-heading.s-in_transit span { color: #1565C0; }
.status-heading.s-customs span { color: #880E4F; }
.status-heading.s-out_for_delivery span { color: #00695C; }
.status-heading.s-delivered span { color: #2BAF6B; }

/* ======================== */
/* INFO ROW */
/* ======================== */
.info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.info-block {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.info-label {
  display: block;
  font-size: 12px;
  color: #999;
  font-weight: 500;
  margin-bottom: 6px;
}
.info-value {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  word-break: break-all;
}

/* ======================== */
/* TIMELINE */
/* ======================== */
.timeline-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #e8e8e8;
}

.tl-event {
  position: relative;
  padding-bottom: 24px;
}
.tl-event:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -34px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #ddd;
}
.tl-dot.green {
  background: #2BAF6B;
}
.tl-dot.yellow {
  background: #FFA726;
}
.tl-dot svg {
  width: 14px;
  height: 14px;
}

.tl-date {
  font-size: 12px;
  color: #999;
  font-weight: 500;
  margin-bottom: 2px;
}
.tl-desc {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
}
.tl-location {
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 28px 0 16px;
  margin-top: auto;
}
.footer p { font-size: 12px; color: #999; margin-bottom: 4px; }
.footer a { color: #2BAF6B; text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }
.copyright { font-size: 11px; color: #ccc; }

/* Responsive */
@media (max-width: 480px) {
  .info-row { flex-direction: column; gap: 10px; }
  .track-icon-wrap { width: 30px; height: 30px; }
  .track-icon-wrap svg { width: 14px; height: 14px; }
  .track-label { font-size: 9px; }
  .track-date { font-size: 8px; }
  .track-line { top: 40px; left: 40px; right: 40px; }
  .status-heading { font-size: 18px; }
  .progress-track { padding: 22px 12px 14px; }
}
