/* NYXLABS track — horizontal progress result view */
.track-page .track-main {
  padding: 2rem 0 4rem;
  max-width: 980px;
}
.track-page.has-result .track-main {
  max-width: 1080px;
}

/* Search-only card */
.track-search-card {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(28, 28, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  padding: 1.5rem 1.4rem 1.6rem;
  backdrop-filter: blur(12px);
}
.track-search-card h1,
.track-title {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  letter-spacing: -0.03em;
  color: #fff;
  text-transform: none;
  margin: 0.15rem 0 0.55rem;
}
.track-search-card h1 {
  font-size: clamp(1.7rem, 4vw, 2.15rem);
}
.track-search-card .lead {
  color: #a1a1aa;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  max-width: none;
}
.track-search-card code {
  font-size: 0.88em;
  color: #d4894a;
  background: rgba(197, 106, 45, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}
.track-form {
  display: grid;
  gap: 0.75rem;
}
.track-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #e4e4e7;
}
.track-form .opt { color: #71717a; font-weight: 500; }
.track-form input {
  width: 100%;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  padding: 0.78rem 0.85rem;
}
.track-form input:focus {
  outline: none;
  border-color: rgba(197, 106, 45, 0.45);
  box-shadow: 0 0 0 3px rgba(197, 106, 45, 0.12);
}
.track-alert.err {
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.3);
  color: #fda4af;
  font-size: 0.92rem;
}

/* Result shell */
.track-result-shell {
  display: grid;
  gap: 1rem;
}
.track-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
}
.track-title {
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  margin-bottom: 0;
}
.track-summary-card,
.track-timeline-card,
.track-history-card {
  background: rgba(28, 28, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  padding: 1.15rem 1.2rem 1.25rem;
  backdrop-filter: blur(12px);
}
.track-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.track-summary-grid-2 {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ts-item .k {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71717a;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.ts-item strong {
  color: #f4f4f5;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.ts-status {
  color: #d4894a !important;
}
.pay-mini {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #d4894a;
}
.pay-mini:hover { color: #e8a86a; }

.track-section-title {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 1.1rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* ========== Horizontal timeline ========== */
.timeline-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  overflow-x: auto;
  padding: 0.35rem 0.15rem 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.tl-step {
  position: relative;
  flex: 1 1 0;
  min-width: 7.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.25rem;
}
.tl-node {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2a2a2a;
  border: 2px solid #3f3f46;
  color: #a1a1aa;
  z-index: 2;
  position: relative;
}
.tl-num {
  font-size: 0.72rem;
  font-weight: 700;
}
.tl-check {
  color: #141414;
}
.tl-step.is-done .tl-node {
  background: #c56a2d;
  border-color: #c56a2d;
  color: #141414;
}
.tl-step.is-current .tl-node {
  background: #d4894a;
  border-color: #e8a86a;
  color: #141414;
  box-shadow: 0 0 0 5px rgba(197, 106, 45, 0.18);
}
.tl-connector {
  position: absolute;
  top: 0.95rem;
  left: calc(50% + 1rem);
  width: calc(100% - 2rem);
  height: 3px;
  background: #3f3f46;
  z-index: 1;
  border-radius: 99px;
}
.tl-connector.is-done {
  background: linear-gradient(90deg, #c56a2d, #d4894a);
}
.tl-label {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.2rem;
  max-width: 8.5rem;
}
.tl-label strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e4e4e7;
  line-height: 1.25;
}
.tl-step.is-current .tl-label strong {
  color: #fff;
}
.tl-step.is-done .tl-label strong {
  color: #f4f4f5;
}
.tl-time {
  font-size: 0.68rem;
  color: #a1a1aa;
  line-height: 1.3;
}
.tl-time.muted { color: #52525b; }

/* History */
.track-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.track-history li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: rgba(0, 0, 0, 0.2);
}
.hist-left strong {
  color: #fff;
  font-size: 0.92rem;
}
.hist-time {
  color: #a1a1aa;
  font-size: 0.82rem;
  white-space: nowrap;
}
.track-help {
  margin: 0.25rem 0 0;
  color: #a1a1aa;
}
.track-help a { color: #d4894a; }
.muted { color: #a1a1aa; }
.small { font-size: 0.84rem; }

@media (max-width: 900px) {
  .track-summary-grid { grid-template-columns: 1fr 1fr; }
  .tl-step { min-width: 6.4rem; }
  .tl-label strong { font-size: 0.72rem; }
}
@media (max-width: 640px) {
  .track-summary-grid,
  .track-summary-grid-2 { grid-template-columns: 1fr; }
  .timeline-h {
    justify-content: flex-start;
    padding-bottom: 0.75rem;
  }
  .tl-step { min-width: 7rem; flex: 0 0 7rem; }
}

/* Track page light theme overrides */
body.theme-light-print.track-page {
  background: #f6efe6 !important;
}
body.theme-light-print .track-search-card,
body.theme-light-print .track-summary-card,
body.theme-light-print .track-timeline-card,
body.theme-light-print .track-history-card {
  background: #fff !important;
  border-color: #eadfce !important;
  box-shadow: 0 12px 32px rgba(60, 40, 20, 0.08) !important;
  color: #1c1917 !important;
}
body.theme-light-print .track-title,
body.theme-light-print .track-search-card h1,
body.theme-light-print .track-section-title,
body.theme-light-print .track-id,
body.theme-light-print .tl-label strong,
body.theme-light-print .hist-left strong,
body.theme-light-print .ts-item strong {
  color: #1c1917 !important;
}
body.theme-light-print .track-search-card .lead,
body.theme-light-print .track-desc,
body.theme-light-print .muted,
body.theme-light-print .tl-time,
body.theme-light-print .hist-time,
body.theme-light-print .track-help,
body.theme-light-print .ts-item .k {
  color: #6b6560 !important;
}
body.theme-light-print .track-form label { color: #1c1917 !important; }
body.theme-light-print .track-form input {
  background: #fff !important;
  border-color: #dccfb8 !important;
  color: #1c1917 !important;
}
body.theme-light-print .ts-status { color: #e56b1f !important; }
body.theme-light-print .track-status-pill {
  background: rgba(229, 107, 31, 0.1) !important;
  border-color: rgba(229, 107, 31, 0.25) !important;
  color: #e56b1f !important;
}
body.theme-light-print .tl-node {
  background: #f6efe6 !important;
  border-color: #dccfb8 !important;
  color: #8a837c !important;
}
body.theme-light-print .tl-step.is-done .tl-node,
body.theme-light-print .tl-step.is-current .tl-node {
  background: #e56b1f !important;
  border-color: #e56b1f !important;
  color: #fff !important;
}
body.theme-light-print .tl-connector { background: #e5d8c6 !important; }
body.theme-light-print .tl-connector.is-done {
  background: linear-gradient(90deg, #e56b1f, #f07828) !important;
}
body.theme-light-print .track-history li {
  background: #faf4ec !important;
  border-color: #eadfce !important;
}
body.theme-light-print .track-help a,
body.theme-light-print .pay-mini { color: #e56b1f !important; }
body.theme-light-print.track-page .site-header {
  background: rgba(250, 244, 236, 0.92) !important;
}
