/* ========================================================
   CHIP ZORRO LIVE SERVICE TRACKER (track.css)
   ======================================================== */
:root {
  --cz-navy: #0f172a;
  --cz-blue: #1e293b;
  --cz-orange: #ff821d;
  --cz-green: #10b981;
  --cz-slate: #64748b;
  --cz-light: #f8fafc;
  --cz-border: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: #f1f5f9;
  color: var(--cz-navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.cz-track-header {
  background: var(--cz-navy);
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.cz-track-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cz-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.cz-track-brand span {
  font-size: 16px;
  line-height: 1.1;
}

.cz-track-brand b {
  color: var(--cz-orange);
}

.cz-track-brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 700;
}

.cz-order-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: monospace;
}

.cz-track-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Status Hero */
.cz-status-hero {
  background: linear-gradient(135deg, var(--cz-navy), var(--cz-blue));
  color: #ffffff;
  padding: 28px 24px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
}

.cz-pulse-indicator {
  display: inline-flex;
  position: relative;
  width: 14px;
  height: 14px;
  margin-bottom: 12px;
}

.cz-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cz-green);
}

.cz-ping {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cz-green);
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.cz-status-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

.cz-status-desc {
  font-size: 14px;
  color: #cbd5e1;
}

/* Timeline Card */
.cz-timeline-card {
  background: #ffffff;
  border: 1px solid var(--cz-border);
  border-radius: 18px;
  padding: 20px 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.cz-timeline-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cz-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  opacity: 0.35;
  transition: all 0.3s ease;
}

.cz-timeline-step.active, .cz-timeline-step.completed {
  opacity: 1;
}

.cz-step-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 6px;
  transition: all 0.3s ease;
}

.cz-timeline-step.active .cz-step-icon {
  background: #fff7ed;
  border-color: var(--cz-orange);
  box-shadow: 0 0 0 4px rgba(255, 130, 29, 0.2);
  transform: scale(1.1);
}

.cz-timeline-step.completed .cz-step-icon {
  background: #ecfdf5;
  border-color: var(--cz-green);
}

.cz-step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--cz-slate);
}

.cz-timeline-step.active .cz-step-label {
  color: var(--cz-navy);
}

.cz-timeline-connector {
  height: 3px;
  flex: 1;
  background: #e2e8f0;
  margin: 0 4px 22px;
  border-radius: 2px;
}

.cz-timeline-connector.completed {
  background: var(--cz-green);
}

/* Cards */
.cz-card {
  background: #ffffff;
  border: 1px solid var(--cz-border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.cz-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--cz-navy);
  margin-bottom: 14px;
}

/* Technician Card */
.cz-tech-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.cz-tech-avatar-wrap {
  position: relative;
  text-align: center;
}

.cz-tech-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cz-orange), #ea580c);
  color: #ffffff;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 130, 29, 0.25);
}

.cz-badge-verified {
  display: block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  background: #dcfce7;
  color: #166534;
  padding: 2px 6px;
  border-radius: 999px;
  margin-top: 4px;
}

.cz-tech-info h3 {
  margin: 0 0 2px;
  font-size: 17px;
}

.cz-tech-unit {
  font-size: 13px;
  color: var(--cz-slate);
  margin-bottom: 2px;
}

.cz-tech-rating {
  font-size: 12px;
  font-weight: 600;
  color: #d97706;
}

.cz-tech-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cz-btn-primary {
  background: var(--cz-orange);
  color: #ffffff;
}

.cz-btn-primary:hover {
  background: #ea580c;
}

.cz-btn-secondary {
  background: #f1f5f9;
  color: var(--cz-navy);
  border: 1px solid #cbd5e1;
}

.cz-btn-secondary:hover {
  background: #e2e8f0;
}

/* Facts Grid */
.cz-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cz-facts-grid dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cz-slate);
  margin-bottom: 3px;
}

.cz-facts-grid dd {
  font-size: 14px;
  font-weight: 600;
  color: var(--cz-navy);
}

/* Checklist */
.cz-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cz-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--cz-border);
}

.cz-checklist span {
  font-size: 16px;
  line-height: 1;
}

/* Footer */
.cz-track-footer {
  text-align: center;
  padding: 14px;
  font-size: 13px;
  color: var(--cz-slate);
}

.cz-track-footer a {
  color: var(--cz-orange);
  font-weight: 700;
  text-decoration: none;
}

.cz-legal {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
}

@media (max-width: 480px) {
  .cz-tech-card {
    grid-template-columns: auto 1fr;
  }
  .cz-tech-contact {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .cz-tech-contact .cz-btn {
    flex: 1;
  }
  .cz-facts-grid {
    grid-template-columns: 1fr;
  }
}
