:root {
  --brand-navy: #11385f;
  --brand-deep: #0b2742;
  --brand-accent: #f7941d;
  --surface: #ffffff;
  --surface-muted: #f4f8fc;
  --text-main: #102436;
  --text-soft: #5f7185;
  --success: #237a4b;
  --shadow: 0 14px 45px rgba(10, 39, 66, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: var(--text-main);
  background: linear-gradient(150deg, #eef4fa 0%, #ffffff 45%, #f7fbff 100%);
  min-height: 100vh;
  line-height: 1.45;
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 10%, rgba(247, 148, 29, 0.17), transparent 33%),
    radial-gradient(circle at 85% 15%, rgba(17, 56, 95, 0.14), transparent 32%);
}

.topbar {
  position: relative;
  z-index: 1;
  background: linear-gradient(95deg, var(--brand-deep), var(--brand-navy));
  color: #fff;
  padding: 20px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 4px solid var(--brand-accent);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.brand {
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.sub {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.94;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1020px;
  margin: 36px auto;
  padding: 0 20px 44px;
}

.search-panel,
.result-card {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(10, 39, 66, 0.1);
  border: 1px solid #e4edf5;
}

.search-panel {
  padding: 34px;
}

.search-panel h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.search-panel p {
  margin-top: 10px;
  margin-bottom: 24px;
  color: var(--text-soft);
  font-weight: 500;
}

.track-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.track-form input {
  border: 1px solid #cfdbe7;
  border-radius: 12px;
  padding: 15px 16px;
  font-size: 1rem;
  font-family: inherit;
}

.track-form input:focus {
  outline: 2px solid rgba(17, 56, 95, 0.25);
  border-color: var(--brand-navy);
}

.track-form button {
  border: 0;
  border-radius: 12px;
  padding: 0 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(120deg, #e98509, var(--brand-accent));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.track-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(247, 148, 29, 0.35);
}

.feedback {
  margin-top: 14px;
  min-height: 24px;
  font-weight: 600;
  color: var(--text-soft);
}

.feedback.error {
  color: #b33a2b;
}

.feedback.success {
  color: var(--success);
}

.result-card {
  margin-top: 22px;
  padding: 28px;
}

.hidden {
  display: none;
}

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e7eef6;
  padding-bottom: 18px;
}

.label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-soft);
}

.value {
  margin-top: 6px;
  font-size: 1.2rem;
  font-weight: 800;
}

.status-pill {
  margin-top: 7px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 15px;
  background: rgba(17, 56, 95, 0.1);
  color: var(--brand-deep);
  font-weight: 800;
}

.meta-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 14px;
}

.meta-item {
  border: 1px solid #e5edf6;
  background: var(--surface-muted);
  border-radius: 12px;
  padding: 14px;
}

.meta-item span {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.result-card h2 {
  margin-top: 26px;
  margin-bottom: 14px;
  font-size: 1.15rem;
}

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

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 14px;
  align-items: start;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  width: 2px;
  height: calc(100% + 16px);
  background: linear-gradient(180deg, rgba(17, 56, 95, 0.36), rgba(17, 56, 95, 0.12));
}

.timeline-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-top: 10px;
  border: 4px solid #d6e6f5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(17, 56, 95, 0.05);
}

.timeline-content {
  border: 1px solid #dfeaf5;
  border-radius: 12px;
  padding: 14px 15px;
  background: linear-gradient(180deg, #ffffff, #f9fcff);
  box-shadow: 0 8px 18px rgba(8, 46, 82, 0.06);
}

.timeline-item.latest .timeline-marker {
  border-color: rgba(247, 148, 29, 0.35);
  background: radial-gradient(circle at 50% 50%, var(--brand-accent) 0 45%, #fff 47% 100%);
  box-shadow: 0 0 0 6px rgba(247, 148, 29, 0.12);
}

.timeline-item.latest .timeline-content {
  border-color: #ffd7a6;
  box-shadow: 0 10px 24px rgba(247, 148, 29, 0.15);
}

.timeline-item .stamp {
  font-size: 0.86rem;
  color: #4f6479;
  font-weight: 700;
}

.timeline-item .location {
  margin-top: 5px;
  font-weight: 800;
  font-size: 1.03rem;
}

.timeline-item .desc {
  margin-top: 7px;
  color: #2a3f54;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .track-form {
    grid-template-columns: 1fr;
  }

  .track-form button {
    min-height: 44px;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .search-panel,
  .result-card {
    padding: 20px;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .brand {
    font-size: 1.2rem;
  }
}
