.track-wrap {
  display: flex;
  justify-content: center;
  margin: 48px 0 10px;
}
.track-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 560px;
  padding: 42px 28px 38px;
  text-align: center;
}
.track-card__icon {
  display: inline-grid;
  place-items: center;
  color: var(--bar);
}
.track-card__icon svg { width: 42px; height: 42px; }
.track-card h1 {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 600;
  color: #3a353c;
}
.track-card p {
  margin-top: 6px;
  font-size: 14px;
  color: #6e6a70;
}

.track-form {
  max-width: 340px;
  margin: 22px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.track-form input {
  width: 100%;
  height: 46px;
  background: var(--surface);
  border: 1px solid #e2ddd4;
  border-radius: 12px;
  padding: 0 15px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}
.track-form input:focus { border-color: #c9c2b4; }
.track-form input::placeholder { color: #9a959d; }
.track-form input.is-invalid { border-color: var(--crimson); }

.track-form__search {
  height: 46px;
  background: var(--dark);
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.track-form__search:hover { background: #000; }
.track-form__search:disabled { background: #b6b2b8; cursor: not-allowed; }

.track-form__ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  background: var(--surface);
  border: 1px solid #e2ddd4;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.track-form__ghost:hover { border-color: #cfc9bf; }

.track-results {
  max-width: 560px;
  margin: 18px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.track-msg {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
}
.track-msg--err { color: var(--crimson); }

.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
}
.order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.order-card__id { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.order-card__date {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}
.order-badge {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.order-badge--waiting { background: #fdf0d7; color: #b07c10; }
.order-badge--paid { background: #ddf3e4; color: #1d9e53; }
.order-badge--cancel { background: #f6e7e9; color: #b03049; }
.order-badge--refund { background: #eeeceb; color: #6e6a70; }

.order-card__items {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0ede6;
  font-size: 12.5px;
  line-height: 1.6;
  color: #55505a;
}
.order-card__total {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
}
.order-card__total span { color: var(--muted); }
.order-card__total strong { color: var(--crimson); font-size: 15px; font-weight: 600; }

.order-card--btn {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.order-card--btn:hover {
  border-color: #d9d3c9;
  box-shadow: 0 4px 12px rgba(30, 20, 25, 0.06);
}
.track-listlabel {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.order-detail {
  max-width: 580px;
  margin: 22px auto 0;
}
.order-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #3a353c;
}
.order-detail__back::before { content: "‹"; font-size: 16px; line-height: 1; }
.order-detail__back:hover { color: var(--crimson); }

.order-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.order-detail__kicker {
  font-size: 12px;
  color: var(--muted);
}
.order-detail__title {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  color: #241f26;
}
.order-detail__badge {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bar);
  color: #fff;
  display: grid;
  place-items: center;
}
.order-detail__badge svg { width: 22px; height: 22px; }
.order-detail__badge--wait { background: #eeeceb; color: #8d8890; }

.order-detail__eta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  background: #fdf1f4;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--crimson);
}
.order-detail__eta svg { width: 15px; height: 15px; flex: none; }
.order-detail__eta span { font-weight: 500; color: #7c2a3c; }

.order-timeline {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
}
.tl-step {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 22px;
}
.tl-step:last-child { padding-bottom: 0; }

.tl-step::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: -2px;
  width: 2px;
  background: #e6e2d9;
}
.tl-step:last-child::before { display: none; }

.tl-step__dot {
  position: relative;
  z-index: 1;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d3cec5;
  background: var(--surface);
  display: grid;
  place-items: center;
}
.tl-step__body { display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.tl-step__title {
  font-size: 14px;
  font-weight: 600;
  color: #a8a3aa;
}
.tl-step__sub { font-size: 12px; color: #b3aeb4; }

.tl-step--current .tl-step__dot {
  border-color: var(--bar);
  background: var(--bar);
}
.tl-step--current .tl-step__dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}
.tl-step--current .tl-step__title { color: var(--bar); }
.tl-step--current .tl-step__sub { color: var(--muted); }

.tl-step--done .tl-step__dot { border-color: var(--bar); background: var(--bar); }
.tl-step--done .tl-step__dot::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.tl-step--done .tl-step__title { color: var(--ink); }
.tl-step--done .tl-step__sub { color: var(--muted); }
.tl-step--done::before { background: var(--bar); }

.order-recap {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 6px 22px;
}
.order-recap__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f0ede6;
  font-size: 13.5px;
}
.order-recap__row:last-child { border-bottom: none; }
.order-recap__row span { color: var(--muted); flex: none; }
.order-recap__row strong { color: var(--ink); font-weight: 600; text-align: right; }
.order-recap__row--total strong { color: var(--crimson); font-size: 16px; }

.order-detail__note {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.order-detail__note a { color: var(--crimson); font-weight: 600; }
.order-detail__note a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .track-wrap { margin-top: 26px; }
  .track-card { padding: 32px 18px 30px; }
  .track-form { max-width: 100%; }
  .order-detail__title { font-size: 24px; }
  .order-timeline { padding: 20px 18px; }
  .order-recap { padding: 4px 18px; }
}
