.hero-global { height: auto !important; min-height: 160px !important; }
.track-page { padding: 56px 20px 80px; background: var(--section); }
.track-container { max-width: 760px; margin: auto; background: #fff; padding: 34px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.track-head h2 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.track-head p { font-family: var(--font-body); font-size: 15px; color: var(--muted); margin: 0 0 22px; }

.track-search { display: flex; gap: 10px; }
.track-search input { flex: 1; padding: 14px 16px; border-radius: 100px; border: 1px solid var(--border-2); font-family: var(--font-body); font-size: 15px; color: var(--text); outline: none; transition: border-color .2s; }
.track-search input:focus { border-color: var(--primary); }
.track-search button { display: flex; align-items: center; gap: 7px; padding: 14px 24px; background: var(--primary); border: none; color: #fff; border-radius: 100px; font-family: var(--font-body); font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s; white-space: nowrap; }
.track-search button:hover { background: var(--primary-dk); }
.track-search button:disabled { opacity: .6; cursor: not-allowed; }

.track-loader { display: flex; justify-content: center; padding: 36px 0; }
.spinner { height: 44px; width: 44px; border-radius: 50%; border: 5px solid var(--border); border-top-color: var(--primary); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none; }

.tr-card { margin-top: 26px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tr-head { background: var(--section); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.tr-head .tr-code { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--text); }
.tr-head .tr-meta { font-family: var(--font-body); font-size: 13px; color: var(--muted); margin-top: 2px; }
.tr-status-badge { font-family: var(--font-body); font-size: 12px; font-weight: 600; padding: 5px 13px; border-radius: 100px; text-transform: capitalize; }
.st-pending { background: #fef9eb; color: #92620a; }
.st-paid, .st-processing { background: #e0f7fd; color: #0077a8; }
.st-shipped { background: #ede9fe; color: #6d28d9; }
.st-delivered { background: #dcfce7; color: #15803d; }
.st-cancelled { background: #fee2e2; color: #b91c1c; }

.tr-body { padding: 24px 20px; }

.timeline { display: flex; justify-content: space-between; position: relative; margin: 8px 0 28px; }
.timeline::before { content: ""; position: absolute; top: 16px; left: 6%; right: 6%; height: 3px; background: var(--border-2); z-index: 0; }
.timeline-fill { content: ""; position: absolute; top: 16px; left: 6%; height: 3px; background: var(--primary); z-index: 1; transition: width .5s ease; }
.tl-step { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.tl-dot { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 3px solid var(--border-2); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: .3s; }
.tl-step.done .tl-dot { border-color: var(--primary); background: var(--primary); color: #fff; }
.tl-step.current .tl-dot { border-color: var(--primary); background: #fff; color: var(--primary-dk); box-shadow: 0 0 0 4px rgba(0,182,214,0.18); }
.tl-label { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--muted); text-align: center; }
.tl-step.done .tl-label, .tl-step.current .tl-label { color: var(--text); font-weight: 600; }

.tr-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.tr-info-item { background: var(--section); border-radius: var(--radius-sm); padding: 12px 14px; }
.tr-info-item .l { font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.tr-info-item .v { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--text); margin-top: 2px; word-break: break-all; }

.tr-receipt-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; background: var(--surface2); border: 1px solid var(--border); border-radius: 100px; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--text); text-decoration: none; transition: .2s; margin-bottom: 24px; }
.tr-receipt-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.tr-events-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--text); margin: 0 0 14px; }
.tr-event { position: relative; padding: 0 0 18px 24px; border-left: 2px solid var(--border); }
.tr-event:last-child { border-left-color: transparent; padding-bottom: 0; }
.tr-event::before { content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.tr-event .e-status { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--text); }
.tr-event .e-desc { font-family: var(--font-body); font-size: 14px; color: var(--text-2); margin: 3px 0; line-height: 1.5; }
.tr-event .e-meta { font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.tr-no-events { font-family: var(--font-body); font-size: 14px; color: var(--muted); padding: 8px 0; }

.tr-error { margin-top: 24px; text-align: center; padding: 32px 20px; background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius); color: #b91c1c; font-family: var(--font-body); font-size: 15px; }

@media (max-width: 560px) {
  .track-container { padding: 24px 18px; }
  .track-search { flex-direction: column; }
  .track-search button { justify-content: center; }
  .tr-info { grid-template-columns: 1fr; }
  .tl-label { font-size: 10px; }
}
