/* ── Order track (search + result) ── */
.ms-track {
  padding: 1.5rem 0 3.5rem;
  position: relative;
}

.ms-track-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.ms-track-search__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 280px;
  background: radial-gradient(ellipse at 50% 0%, rgba(45, 106, 79, 0.22) 0%, transparent 68%);
  pointer-events: none;
  opacity: 0.9;
}

.ms-track-search__inner {
  position: relative;
  padding: 1.75rem 1.35rem 1.5rem;
  border-radius: 28px;
  background: linear-gradient(165deg, #f4faf6 0%, #fff 42%, #faf7ee 100%);
  border: 1px solid rgba(45, 106, 79, 0.14);
  box-shadow:
    0 24px 56px rgba(27, 67, 50, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.ms-track-search__badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  color: #1b4332;
  background: rgba(52, 211, 153, 0.2);
  border: 1px solid rgba(45, 106, 79, 0.18);
}

.ms-track-search__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 900;
  color: var(--c-primary-dark, #1b4332);
  line-height: 1.35;
}

.ms-track-search__lead {
  margin: 0 0 1.15rem;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--c-text-2, #5a6b62);
  font-weight: 600;
}

.ms-track-search__foot {
  margin: 1.1rem 0 0;
  font-size: 0.74rem;
  line-height: 1.65;
  color: var(--c-text-2);
  font-weight: 600;
  text-align: center;
}

.ms-track-search__foot a {
  color: var(--c-primary, #2d6a4f);
  font-weight: 800;
  text-decoration: none;
}

.ms-track-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.22);
  color: #922b21;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.6;
}

.ms-track-alert span {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(192, 57, 43, 0.15);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.ms-track-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ms-track-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--c-text-2);
}

.ms-track-input {
  width: 100%;
  padding: 0.82rem 1rem;
  border-radius: 14px;
  border: 1.5px solid rgba(61, 90, 76, 0.18);
  background: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-primary-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ms-track-input:focus {
  outline: none;
  border-color: rgba(45, 106, 79, 0.55);
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.12);
}

.ms-track-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding: 0.88rem 1.25rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  font-size: 0.92rem;
  color: #fff;
  background: linear-gradient(145deg, #1b4332, #2d6a4f 55%, #40916c);
  box-shadow: 0 12px 32px rgba(27, 67, 50, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ms-track-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(27, 67, 50, 0.32);
}

.ms-track-submit__icon {
  transition: transform 0.25s ease;
}

.ms-track-submit:hover .ms-track-submit__icon {
  transform: translateX(-4px);
}

/* ── Result ── */
.ms-track-result {
  max-width: 720px;
  margin: 0 auto;
}

.ms-track-result__hero {
  position: relative;
  text-align: center;
  padding: 1.85rem 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, #e8f5ee 0%, #fff 50%, #f8f4e8 100%);
  border: 1px solid rgba(45, 106, 79, 0.14);
  box-shadow: 0 20px 50px rgba(30, 50, 41, 0.09);
}

.ms-track-result__pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(64, 145, 108, 0.2), transparent 55%);
  pointer-events: none;
}

.ms-track-result__hero-icon {
  position: relative;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 0.75rem;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.85rem;
  background: linear-gradient(145deg, #2d6a4f, #52b788);
  box-shadow: 0 14px 36px rgba(45, 106, 79, 0.35);
}

.ms-track-result__hero-icon--muted {
  background: linear-gradient(145deg, #6b7280, #9ca3af);
  box-shadow: 0 10px 28px rgba(75, 85, 99, 0.25);
}

.ms-track-result__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--c-text-2);
}

.ms-track-result__number {
  margin: 0.2rem 0 0.55rem;
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--c-primary-dark);
}

.ms-track-result__status {
  margin: 0 0 0.5rem;
}

.ms-track-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.ms-track-pill--ok {
  color: #14532d;
  background: rgba(52, 211, 153, 0.25);
  border: 1px solid rgba(45, 106, 79, 0.2);
}

.ms-track-pill--bad {
  color: #7f1d1d;
  background: rgba(248, 113, 113, 0.2);
  border: 1px solid rgba(185, 28, 28, 0.2);
}

.ms-track-result__hint {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 0.8rem;
  line-height: 1.75;
  font-weight: 600;
  color: var(--c-text-2);
}

/* Timeline */
.ms-track-timeline {
  position: relative;
  margin-bottom: 1.35rem;
  padding: 0.25rem 0.5rem 0;
}

.ms-track-timeline__rail {
  position: absolute;
  top: 1.15rem;
  right: 8%;
  left: 8%;
  height: 4px;
  border-radius: 999px;
  background: rgba(45, 106, 79, 0.12);
  overflow: hidden;
}

.ms-track-timeline__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d6a4f, #52b788, #95d5b2);
  box-shadow: 0 0 12px rgba(82, 183, 136, 0.55);
}

.ms-track-timeline__steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-track-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  text-align: center;
}

.ms-track-step__dot {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  background: #fff;
  border: 2px solid rgba(45, 106, 79, 0.2);
  color: var(--c-text-2);
  box-shadow: 0 4px 14px rgba(30, 50, 41, 0.06);
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s;
}

.ms-track-step--done .ms-track-step__dot {
  background: linear-gradient(145deg, #2d6a4f, #40916c);
  border-color: transparent;
  color: #fff;
}

.ms-track-step--active .ms-track-step__dot {
  border-color: #2d6a4f;
  color: #1b4332;
  box-shadow: 0 0 0 6px rgba(45, 106, 79, 0.15);
}

.ms-track-step__label {
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--c-text-2);
}

.ms-track-step--active .ms-track-step__label,
.ms-track-step--done .ms-track-step__label {
  color: var(--c-primary-dark);
}

@media (max-width: 520px) {
  .ms-track-step__label {
    font-size: 0.58rem;
  }
  .ms-track-step__dot {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.65rem;
  }
}

.ms-track-cards {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .ms-track-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ms-track-card {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--c-border, rgba(61, 90, 76, 0.12));
  box-shadow: 0 8px 24px rgba(30, 50, 41, 0.05);
}

.ms-track-card--amount {
  background: linear-gradient(135deg, #f0faf4, #fff);
  border-color: rgba(45, 106, 79, 0.18);
}

@media (min-width: 640px) {
  .ms-track-card--amount {
    grid-column: span 2;
  }
}

.ms-track-card__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--c-text-2);
}

.ms-track-card__value {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--c-primary-dark);
}

.ms-track-card__value small {
  font-size: 0.72rem;
  font-weight: 800;
}

.ms-track-items {
  margin-bottom: 1.35rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--c-border, rgba(61, 90, 76, 0.12));
  box-shadow: 0 10px 28px rgba(30, 50, 41, 0.06);
}

.ms-track-items__title {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--c-primary-dark);
}

.ms-track-items__title span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-text-2);
}

.ms-track-items__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ms-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: #f8fbf9;
  border: 1px solid rgba(45, 106, 79, 0.08);
}

.ms-track-item__main strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--c-primary-dark);
}

.ms-track-item__main span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-text-2);
}

.ms-track-item__meta {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: #1b4332;
}

.ms-track-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .ms-track-submit:hover {
    transform: none;
  }
}
