/* ============================================================
   PAVI'S LAB — track-order.css
   ============================================================ */

.to-main {
  min-height: calc(100vh - 160px);
  padding: 60px 0 80px;
}

/* ── Search card ── */
.to-search-card {
  max-width: 540px;
  margin: 0 auto 40px;
  text-align: center;
}

.to-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.to-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
}

.to-input-row {
  display: flex;
  gap: 10px;
}

.to-input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: border-color 0.2s;
}
.to-input::placeholder { color: rgba(255,255,255,0.3); text-transform: none; letter-spacing: 0; }
.to-input:focus { border-color: var(--pink); background: rgba(255,0,127,0.05); }

.to-btn-track {
  padding: 14px 24px;
  background: var(--pink);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.to-btn-track:hover { background: var(--pink-deep); transform: translateY(-1px); }
.to-btn-track:disabled { background: rgba(255,255,255,0.15); cursor: not-allowed; transform: none; }

/* ── Result card ── */
.to-result {
  max-width: 620px;
  margin: 0 auto;
  display: none;
}

.to-result-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 16px;
}

.to-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.to-order-id {
  font-size: 18px;
  font-weight: 800;
  color: var(--pink);
  letter-spacing: 0.5px;
}

.to-order-date {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 3px;
}

/* Status timeline */
.to-timeline {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  gap: 0;
}

.to-tl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

.to-tl-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  z-index: 1;
  transition: all 0.3s;
}

.to-tl-dot.done {
  background: rgba(0,200,80,0.15);
  border-color: rgba(0,200,80,0.5);
  color: rgba(0,220,80,0.9);
}

.to-tl-dot.active {
  background: rgba(255,0,127,0.15);
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 0 12px rgba(255,0,127,0.3);
}

.to-tl-dot.cancelled {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.4);
  color: rgba(239,68,68,0.8);
}

.to-tl-label {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.to-tl-label.done, .to-tl-label.active { color: rgba(255,255,255,0.75); }

.to-tl-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 18px;
}
.to-tl-line.done { background: rgba(0,200,80,0.4); }

/* Status badge */
.to-status-box {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255,0,127,0.07);
  border: 1px solid rgba(255,0,127,0.2);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pink-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.to-status-box.dispatched { background: rgba(0,188,212,0.07); border-color: rgba(0,188,212,0.25); color: rgba(0,220,240,0.9); }
.to-status-box.delivered  { background: rgba(0,200,80,0.07);  border-color: rgba(0,200,80,0.25);  color: rgba(0,220,80,0.9); }
.to-status-box.cancelled  { background: rgba(239,68,68,0.07); border-color: rgba(239,68,68,0.25); color: rgba(255,100,100,0.9); }

/* Tracking code */
.to-tracking-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.to-tracking-row strong { color: rgba(0,220,240,0.9); }

/* Items list */
.to-items-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.to-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  gap: 8px;
}
.to-item-row:last-child { border-bottom: none; }
.to-item-name { color: rgba(255,255,255,0.8); flex: 1; line-height: 1.4; }
.to-item-meta { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.to-item-price { font-weight: 700; color: #fff; flex-shrink: 0; }

.to-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Error message */
.to-error {
  max-width: 540px;
  margin: 0 auto;
  display: none;
  text-align: center;
  padding: 28px;
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 14px;
  color: rgba(255,120,120,0.9);
  font-size: 14px;
}

/* Invoice button */
.to-invoice-btn {
  width: 100%;
  padding: 13px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  transition: background 0.2s, border-color 0.2s;
}
.to-invoice-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

@media (max-width: 600px) {
  .to-input-row { flex-direction: column; }
  .to-btn-track { justify-content: center; }
  .to-tl-label { font-size: 9px; }
}
