:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1c2733;
  --muted: #5f6b7a;
  --accent: #0b74de;
  --accent-dark: #085aab;
  --done: #1a9e55;
  --line: #d7dde4;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.site-header { padding: 8px 0 24px; }
.brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(16, 30, 46, 0.08), 0 8px 24px rgba(16, 30, 46, 0.06);
}

h1 { font-size: 1.45rem; margin-bottom: 8px; }
.lede { color: var(--muted); margin-bottom: 20px; }

.track-form { display: flex; gap: 10px; flex-wrap: wrap; }
.track-form input {
  flex: 1 1 220px;
  padding: 13px 14px;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.track-form input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.track-form button {
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.track-form button:hover { background: var(--accent-dark); }

.error {
  background: #fdecec;
  color: #a33;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.tracking-number {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
  word-break: break-all;
}

/* Progress steps */
.progress {
  list-style: none;
  display: flex;
  margin-bottom: 32px;
}
.progress li {
  flex: 1;
  text-align: center;
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
}
.progress li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: var(--line);
}
.progress li:first-child::before { display: none; }
.progress .dot {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--line);
  margin-bottom: 6px;
}
.progress li.done .dot,
.progress li.done::before { background: var(--done); }
.progress li.current .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(11, 116, 222, 0.18); }
.progress li.current::before { background: var(--done); }
.progress li.current { color: var(--text); font-weight: 600; }
.progress li.done { color: var(--done); }
.progress .label { display: block; padding: 0 4px; }

.status-title { margin-bottom: 10px; }
.status-title.delivered { color: var(--done); }
.status-message { color: var(--muted); margin-bottom: 8px; }
.updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 4px; }

.cta {
  display: block;
  text-align: center;
  margin-top: 24px;
  padding: 15px 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 10px;
  text-decoration: none;
}
.cta:hover { background: var(--accent-dark); }

.hint { margin-top: 16px; color: var(--muted); font-size: 0.9rem; }
.hint a { color: var(--accent); }

.site-footer {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 420px) {
  .card { padding: 24px 18px; }
  .progress .label { font-size: 0.68rem; }
}
