.track-page {
  min-height: 60vh;
}

.track-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.track-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201, 0, 0, 0.08) 0%, transparent 70%);
}

.track-hero__inner {
  position: relative;
  z-index: 1;
}

.track-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.track-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.track-hero .track-hero__note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
  max-width: 500px;
}

.track-section {
  padding: 50px 0 60px;
  background: #f5f5f7;
}

.track-card {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 40px;
}

.track-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.track-card .track-card__desc {
  font-size: 15px;
  color: #666;
  margin: 0 0 28px;
  line-height: 1.5;
}

.track-form {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.track-form__input-wrap {
  flex: 1;
  position: relative;
}

.track-form__input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

.track-form__input:focus {
  outline: none;
  border-color: #C90000;
  box-shadow: 0 0 0 3px rgba(201, 0, 0, 0.1);
  background: #fff;
}

.track-form__input::placeholder {
  color: #999;
}

.track-form__input.track-form__input--error {
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.track-form__btn {
  height: 52px;
  padding: 0 32px;
  background: #C90000;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  min-width: 160px;
}

.track-form__btn:hover {
  background: #A80000;
}

.track-form__btn:active {
  transform: scale(0.97);
}

.track-form__btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.track-form__btn .track-form__btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: track-spin 0.6s linear infinite;
}

.track-form__btn.track-form__btn--loading .track-form__btn-text {
  visibility: hidden;
}

.track-form__btn.track-form__btn--loading .track-form__btn-spinner {
  display: block;
  position: absolute;
}

.track-form__error {
  display: none;
  font-size: 13px;
  color: #d32f2f;
  margin-top: 10px;
  align-items: center;
  gap: 6px;
}

.track-form__error.track-form__error--visible {
  display: flex;
}

.track-result {
  display: none;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.track-result.track-result--visible {
  display: block;
}

.track-result__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.track-result__info h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.track-result__code {
  font-size: 14px;
  color: #888;
}

.track-result__code strong {
  color: #1a1a1a;
  font-weight: 600;
}

.track-result__status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  background: #fff3e0;
  color: #e65100;
  white-space: nowrap;
}

.track-result__status-tag svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.track-result__status-tag--success {
  background: #e8f5e9;
  color: #2e7d32;
}

.track-result__status-tag--info {
  background: #e3f2fd;
  color: #1565c0;
}

.track-result__message {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: #f9f9fb;
  border-radius: 10px;
  border-left: 3px solid #C90000;
}

.track-timeline {
  position: relative;
  padding: 0;
  margin: 0;
  list-style: none;
}

.track-timeline::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #e0e0e0;
}

.track-timeline__item {
  position: relative;
  padding: 0 0 32px 60px;
}

.track-timeline__item:last-child {
  padding-bottom: 0;
}

.track-timeline__dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e0e0e0;
  border: 2px solid #e0e0e0;
  z-index: 1;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-timeline__dot svg {
  display: none;
  width: 10px;
  height: 10px;
  color: #fff;
}

.track-timeline__item--completed .track-timeline__dot {
  background: #C90000;
  border-color: #C90000;
}

.track-timeline__item--completed .track-timeline__dot svg {
  display: block;
}

.track-timeline__item--active .track-timeline__dot {
  background: #fff;
  border-color: #C90000;
  box-shadow: 0 0 0 4px rgba(201, 0, 0, 0.15);
}

.track-timeline__item--active .track-timeline__dot::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #C90000;
  border-radius: 50%;
}

.track-timeline__item--active .track-timeline__label {
  color: #1a1a1a;
}

.track-timeline__item--active .track-timeline__label strong {
  display: inline;
}

.track-timeline__label {
  font-size: 15px;
  font-weight: 500;
  color: #999;
  margin: 0;
  line-height: 1.4;
  transition: color 0.3s;
}

.track-timeline__item--completed .track-timeline__label {
  color: #666;
}

.track-timeline__item--active .track-timeline__date {
  color: #C90000;
  font-weight: 600;
}

.track-timeline__date {
  font-size: 13px;
  color: #bbb;
  margin: 2px 0 0;
}

.track-result__footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.track-result__footer p {
  font-size: 13px;
  color: #999;
  margin: 0;
  line-height: 1.5;
}

.track-disclaimer {
  text-align: center;
  margin-top: 16px;
}

.track-disclaimer p {
  font-size: 13px;
  color: #999;
  margin: 0;
  line-height: 1.5;
}

.track-help {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 0;
}

.track-help h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px;
}

.track-help p {
  font-size: 15px;
  color: #666;
  margin: 0 0 24px;
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.track-help__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.track-help__btn:hover {
  background: #1ebe5b;
  color: #fff;
  text-decoration: none;
}

.track-help__btn:active {
  transform: scale(0.97);
}

.track-help__btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@keyframes track-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .track-hero {
    padding: 44px 0 36px;
  }

  .track-hero h1 {
    font-size: 28px;
  }

  .track-hero p {
    font-size: 16px;
  }

  .track-section {
    padding: 32px 0 40px;
  }

  .track-card {
    padding: 24px 20px;
    border-radius: 12px;
    margin: 0 12px;
  }

  .track-card h2 {
    font-size: 20px;
  }

  .track-form {
    flex-direction: column;
  }

  .track-form__btn {
    width: 100%;
    min-width: 0;
  }

  .track-result__header {
    flex-direction: column;
  }

  .track-timeline__item {
    padding-left: 52px;
  }

  .track-timeline::before {
    left: 17px;
  }

  .track-timeline__dot {
    left: 8px;
    width: 18px;
    height: 18px;
  }

  .track-timeline__label {
    font-size: 14px;
  }

  .track-help {
    padding: 32px 20px;
  }

  .track-help h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .track-hero {
    padding: 36px 16px 28px;
  }

  .track-hero h1 {
    font-size: 24px;
  }

  .track-hero p {
    font-size: 14px;
  }

  .track-card {
    padding: 20px 16px;
    margin: 0 8px;
  }

  .track-form__input {
    height: 46px;
    font-size: 14px;
  }

  .track-form__btn {
    height: 46px;
    font-size: 14px;
  }
}
