.track-wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.track-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 22px;
  align-items: stretch;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.16), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #0d3f31 52%, #15a968 100%);
  box-shadow: 0 22px 56px rgba(15, 23, 42, .16);
  overflow: hidden;
}

.track-copy {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.track-copy span {
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.track-copy h1 {
  max-width: 360px;
  margin: 0 0 8px;
  color: #fff;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 800;
}

.track-copy p {
  max-width: 420px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.65;
}

.track-search-card {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 172px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  background: rgba(255,255,255,.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.track-search {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 10px;
  align-items: center;
}

.track-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid #d7e1ea;
  border-radius: 14px;
  background: #f8fafc;
}

.track-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 185, 106, .1);
}

.track-input-wrap svg {
  width: 18px;
  height: 18px;
  color: #64748b;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.track-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-1);
  font-size: 14px;
  font-weight: 700;
}

.track-input-wrap input::placeholder {
  color: #94a3b8;
  font-weight: 600;
}

.track-search button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(17, 24, 39, .16);
}

.track-search button:disabled {
  opacity: .65;
  cursor: wait;
}

.track-hint,
.track-message {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.track-message { min-height: 18px; }
.track-message.error { color: var(--error); }

.track-empty,
.buyer-summary,
.order-item {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .07);
}

.track-empty {
  margin-top: 18px;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  text-align: left;
}

.empty-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-weight: 800;
}

.track-empty h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.track-empty p {
  max-width: 360px;
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.hidden { display: none !important; }

.track-results { margin-top: 18px; }

.buyer-summary {
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) 1fr 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  align-items: center;
}

.buyer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ecfdf5, #f8fafc);
}

.buyer-profile img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #fff;
  background: #eef2f7;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .1);
}

.buyer-profile span,
.summary-stat span,
.order-field span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.buyer-profile strong {
  display: block;
  overflow: hidden;
  color: var(--text-1);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-stat {
  min-height: 66px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.summary-stat strong {
  color: var(--text-1);
  font-size: 15px;
  font-weight: 800;
}

.status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
}

.status-tabs button {
  padding: 8px 13px;
  border: 1px solid #dbe4ed;
  border-radius: 12px;
  background: #fff;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.status-tabs button.active {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.orders-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.order-item {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  overflow: hidden;
}

.order-item::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #111827, var(--primary));
}

.order-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-left: 2px;
}

.order-item-top strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.order-item-top small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.order-status {
  align-self: start;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.order-status.success { color: #047857; background: #dcfce7; }
.order-status.process { color: #2563eb; background: #dbeafe; }
.order-status.pending { color: #92400e; background: #fef3c7; }
.order-status.failed { color: #b91c1c; background: #fee2e2; }

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.order-field {
  min-height: 70px;
  padding: 11px 12px;
  border-radius: 15px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.order-field strong {
  color: var(--text-1);
  font-size: 13px;
  font-weight: 800;
}

.detail-link {
  width: fit-content;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .track-head,
  .buyer-summary,
  .orders-list,
  .order-grid {
    grid-template-columns: 1fr;
  }

  .track-head { padding: 18px; }
}

@media (max-width: 560px) {
  .track-wrap { width: min(100% - 24px, 980px); padding-top: 24px; }
  .track-search { grid-template-columns: 1fr; }
  .track-copy h1 { font-size: 25px; }
  .order-item-top { align-items: flex-start; flex-direction: column; }
}
