/* ===== Tracking Page Styles ===== */

/* Hero Section */
.tracking-hero {
  background-color: var(--color-studio-bg);
  position: relative;
  overflow: visible;
  min-height: 480px;
}

@media (max-width: 640px) {
  .tracking-hero {
    min-height: 400px;
    padding-top: 12rem !important;
    padding-bottom: 4rem !important;
  }
}

@media (max-width: 480px) {
  .tracking-hero {
    padding-top: 12rem !important;
    padding-bottom: 3rem !important;
  }

  .tracking-input {
    padding: 16px 16px 16px 48px !important;
    font-size: 0.875rem !important;
    border-radius: 30px !important;
  }

  .track-btn {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    margin-top: 10px;
    border-radius: 60px !important;
    padding: 14px 24px !important;
  }

  .track-btn:hover {
    transform: scale(1.02) !important;
  }

  .tracking-search-wrapper {
    display: flex;
    flex-direction: column;
  }

  .search-icon {
    top: 18px !important;
    transform: none !important;
  }
}

.hero-bg-image {
  mix-blend-mode: darken;
  filter: drop-shadow(0 20px 40px rgba(0, 31, 85, 0.08));
}

/* Search Input */
.tracking-search-wrapper {
  position: relative;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.tracking-input {
  width: 100%;
  padding: 18px 160px 18px 56px;
  border: 2px solid rgba(0, 31, 85, 0.1);
  border-radius: 30px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 31, 85, 0.05);
  color: #001f55;
  font-family: "Inter", sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  outline: none;
}

.tracking-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.tracking-input:focus {
  border-color: #ff421d;
  background: white;
  box-shadow:
    0 0 0 4px rgba(255, 66, 29, 0.1),
    0 8px 32px rgba(0, 31, 85, 0.1);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.search-icon svg {
  animation: searchPulse 2s infinite ease-in-out;
}

@keyframes searchPulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; color: #ff421d; }
  100% { transform: scale(1); opacity: 0.7; }
}

@keyframes headerSlideDown {
  from { top: -100px; opacity: 0; }
  to { top: 0; opacity: 1; }
}

.animate-header {
  animation: headerSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.animate-hero-stagger-1 {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.1s;
}

.animate-hero-stagger-2 {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.25s;
}

.animate-hero-stagger-3 {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

.animate-hero-stagger-4 {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.55s;
}

.track-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px 32px;
  background: #001f55;
  color: white;
  border: none;
    border-radius: 60px;
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.track-btn:hover {
  background: #001133;
  transform: translateY(-50%) scale(1.03);
}

.track-btn:active {
  transform: translateY(-50%) scale(0.98);
}

/* Results Container */
.tracking-results {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  grid-area: 1 / 1;
}

.tracking-results.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.results-card {
  background: white;
  border-radius: 24px;
  box-shadow:
    0 20px 60px rgba(0, 31, 85, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 40px 48px;
  border: 1px solid rgba(0, 31, 85, 0.06);
}

@keyframes cardPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 20px 60px rgba(0, 31, 85, 0.08),
      0 1px 3px rgba(0, 0, 0, 0.04);
  }
  50% {
    opacity: 0.9;
    transform: scale(0.99);
    box-shadow:
      0 10px 30px rgba(0, 31, 85, 0.04),
      0 1px 2px rgba(0, 0, 0, 0.02);
  }
}

.pulsate-card {
  animation: cardPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@media (max-width: 640px) {
  .results-card {
    padding: 28px 20px;
    border-radius: 20px;
  }
}

/* Order Header */
.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 31, 85, 0.06);
}

.order-id {
    font-family: "Outfit", sans-serif;
    font-size: 1.375rem;
    font-weight: 800;
  color: #001f55;
  letter-spacing: -0.02em;
}

.order-status-badge {
  padding: 6px 18px;
    border-radius: 50px;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-in-transit {
  background: rgba(255, 66, 29, 0.1);
  color: #ff421d;
}

.badge-delivered {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.badge-created {
  background: rgba(0, 31, 85, 0.08);
  color: #001f55;
}

.badge-returned {
  background: rgba(0, 31, 85, 0.08);
  color: #001f55;
}

.badge-cancelled {
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
}

/* ===== Timeline Section ===== */
.timeline-container {
  position: relative;
  padding: 20px 0 0;
}

/* Progress Track */
.timeline-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 20px;
}

@media (max-width: 640px) {
  .timeline-track {
    padding: 0 4px;
    gap: 0;
    position: relative;
  }

  .timeline-track.scroll-mode {
    min-width: max-content;
    justify-content: flex-start;
  }

  .timeline-step {
    min-width: 64px;
    flex-shrink: 0;
  }

  /* Line positioned dynamically in JS from actual circle centers — hidden until positioned */
  .timeline-line {
    top: 28px;
    left: 32px;
    width: 0;
    opacity: 0;
    transition: none;
  }

  .timeline-line.positioned {
    opacity: 1;
  }

  .timeline-progress {
    top: 0;
    left: 0;
    right: auto;
    width: 0%;
  }

  .timeline-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .timeline-container::-webkit-scrollbar {
    display: none;
  }
}

/* Background Line */
.timeline-line {
  position: absolute;
  top: 28px;
  left: 70px;
  right: 70px;
  height: 4px;
  background: #e8ecf2;
  border-radius: 4px;
  z-index: 1;
}



/* Filled Progress Line */
.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #001f55, #ff421d);
  border-radius: 4px;
  width: 0%;
  z-index: 2;
}

/* Truck Icon on Progress Line */
.truck-indicator {
  position: absolute;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: #ff421d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 66, 29, 0.4);
  z-index: 5;
  transition: opacity 0.3s ease;
}

.truck-indicator svg {
  width: 18px;
  height: 18px;
  fill: white;
}

/* Timeline Steps */
.timeline-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  text-align: center;
}

@media (max-width: 768px) {
  .timeline-step {
    width: 70px;
  }
}

@media (max-width: 480px) {
  .timeline-step {
    width: 64px;
    min-width: 64px;
    scroll-snap-align: center;
  }
}

/* Step Circle */
.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 3px solid #e0e4ea;
  position: relative;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 4;
}

@media (max-width: 640px) {
  .step-circle {
    width: 44px;
    height: 44px;
    border-width: 2.5px;
  }

  .step-circle svg {
    width: 18px;
    height: 18px;
  }
}

.step-circle svg {
  width: 22px;
  height: 22px;
  transition: all 0.4s ease;
}

/* Step icon swap: default icon + checkmark */
.step-circle .step-icon-default,
.step-circle .step-icon-check {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.step-circle .step-icon-default svg,
.step-circle .step-icon-check svg {
  width: 22px;
  height: 22px;
}

.step-circle .step-icon-check {
  opacity: 0;
  transform: scale(0.2) rotate(-20deg);
}

/* Completed: step icon visible, swaps to checkmark when truck reaches */
.timeline-step.completed.reached .step-icon-default {
  animation: iconOut 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.timeline-step.completed.reached .step-icon-check {
  color: white;
  animation: tickPop 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.05s;
}

/* Active: show step icon, no checkmark */
.timeline-step.active .step-icon-default {
  color: white;
}

.timeline-step.active .step-icon-check {
  opacity: 0;
  transform: scale(0.2) rotate(-20deg);
}

/* Pending: keep default icon visible */
.timeline-step.pending .step-icon-default {
  opacity: 1;
  transform: scale(1);
}

.timeline-step.pending .step-icon-check {
  opacity: 0;
  transform: scale(0.2) rotate(-20deg);
}

@keyframes iconOut {
  0% { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 0; transform: scale(0.2) rotate(20deg); }
}

/* Step Timeline Animations Syncing with Truck */
@keyframes stepComplete {
  0% {
    background: #f5f6f8;
    border-color: #dde1e8;
    box-shadow: none;
    transform: scale(1);
  }
  40% {
    background: #001f55;
    border-color: #001f55;
    transform: scale(1.12);
    box-shadow: 0 8px 24px rgba(0,31,85,0.25);
  }
  100% {
    background: #001f55;
    border-color: #001f55;
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(0, 31, 85, 0.25);
  }
}

@keyframes stepActive {
  0% {
    background: #f5f6f8;
    border-color: #dde1e8;
    box-shadow: none;
    transform: scale(1);
  }
  40% {
    background: #ff421d;
    border-color: #ff421d;
    transform: scale(1.12);
  }
  100% {
    background: #ff421d;
    border-color: #ff421d;
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 66, 29, 0.15), 0 4px 20px rgba(255, 66, 29, 0.3);
  }
}

@keyframes tickPop {
  0% { opacity: 0; transform: scale(0.2) rotate(-20deg); color: #bfc5d0; }
  50% { opacity: 1; transform: scale(1.3) rotate(5deg); color: white; }
  100% { opacity: 1; transform: scale(1) rotate(0); color: white; }
}

/* Completed Step */
.timeline-step.completed.reached .step-circle {
  background: #001f55;
  border-color: #001f55;
  box-shadow: 0 4px 16px rgba(0, 31, 85, 0.25);
  animation: stepComplete 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.timeline-step.completed .step-circle .step-icon-check {
  color: white;
}

/* Active/Current Step */
.timeline-step.active.reached .step-circle {
  background: #ff421d;
  border-color: #ff421d;
  box-shadow: 0 0 0 6px rgba(255, 66, 29, 0.15), 0 4px 20px rgba(255, 66, 29, 0.3);
  animation: stepActive 0.3s cubic-bezier(0.22, 1, 0.36, 1) both, activeGlow 2s ease-in-out infinite;
  animation-delay: 0s, 0.3s;
}

.timeline-step.active .step-circle .step-icon-default {
  color: white;
}

.timeline-step.active .step-circle .step-icon-check {
  opacity: 0;
  transform: scale(0.2) rotate(-20deg);
}

/* Cancelled Step — red only */
.timeline-step.cancelled-step.completed.reached .step-circle {
  background: #e11d48;
  border-color: #e11d48;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.25);
}

.timeline-step.cancelled-step.active.reached .step-circle {
  background: #e11d48;
  border-color: #e11d48;
  box-shadow: 0 0 0 6px rgba(225, 29, 72, 0.15), 0 4px 20px rgba(225, 29, 72, 0.3);
  animation: stepActiveCancelled 0.3s cubic-bezier(0.22, 1, 0.36, 1) both, activeGlowCancelled 2s ease-in-out infinite;
  animation-delay: 0s, 0.3s;
}

@keyframes stepActiveCancelled {
  0% { background: #f5f6f8; border-color: #dde1e8; box-shadow: none; transform: scale(1); }
  40% { background: #e11d48; border-color: #e11d48; transform: scale(1.12); }
  100% { background: #e11d48; border-color: #e11d48; transform: scale(1); box-shadow: 0 0 0 6px rgba(225,29,72,0.15), 0 4px 20px rgba(225,29,72,0.3); }
}

@keyframes activeGlowCancelled {
  0%, 100% { box-shadow: 0 0 0 6px rgba(225,29,72,0.15), 0 4px 20px rgba(225,29,72,0.3); }
  50% { box-shadow: 0 0 0 10px rgba(225,29,72,0.08), 0 4px 24px rgba(225,29,72,0.4); }
}

.timeline-step.cancelled-step .step-label {
  color: #e11d48 !important;
}

@keyframes activeGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 6px rgba(255, 66, 29, 0.15),
      0 4px 20px rgba(255, 66, 29, 0.3);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(255, 66, 29, 0.08),
      0 4px 24px rgba(255, 66, 29, 0.4);
  }
}

/* Pending Step */
.timeline-step.pending .step-circle {
  background: #f5f6f8;
  border-color: #dde1e8;
}

.timeline-step.pending .step-circle svg {
  color: #bfc5d0;
}

/* Pulsating effect for pending steps */
.timeline-step.pending .step-circle {
  animation: pendingPulse 2.5s ease-in-out infinite;
}

@keyframes pendingPulse {
  0%,
  100% {
    transform: scale(1);
    border-color: #dde1e8;
  }
  50% {
    transform: scale(1.06);
    border-color: #c8cdd6;
  }
}

/* Step Labels */
.step-label {
    margin-top: 14px;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #8b95a5;
  line-height: 1.3;
  letter-spacing: 0.01em;
  transition: color 0.4s ease;
}

@media (max-width: 640px) {
  .step-label {
    font-size: 0.625rem;
    margin-top: 10px;
  }
}

@keyframes textPop {
  0% { color: #8b95a5; }
  100% { color: #001f55; }
}

.timeline-step.completed.reached .step-label {
  color: #001f55;
  animation: textPop 0.4s both;
}

.timeline-step.active.reached .step-label {
  color: #001f55;
  animation: textPop 0.4s both;
}

/* Step Date */
.step-date {
    margin-top: 4px;
    font-family: "Inter", sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
  color: #a8b0bf;
  transition: color 0.4s ease;
  min-height: 15px;
}

@media (max-width: 640px) {
  .step-date {
    font-size: 0.5625rem;
  }
}

@keyframes datePop {
  0% { color: #a8b0bf; }
  100% { color: #6b7280; }
}

.timeline-step.completed.reached .step-date {
  color: #6b7280;
  animation: datePop 0.4s both;
}

.timeline-step.active.reached .step-date {
  color: #6b7280;
  animation: datePop 0.4s both;
}

/* ===== Truck Drive Animation ===== */
.truck-drive-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.truck-drive-overlay.active {
  opacity: 1;
}

.driving-truck {
  position: absolute;
  top: 50%;
  left: -120px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 2;
}

.driving-truck.animate {
  animation: truckDrive 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes truckDrive {
  0% {
    left: -120px;
  }
  100% {
    left: 110%;
  }
}

.truck-body {
  position: relative;
  display: flex;
  align-items: flex-end;
}

/* Dust Trail */
.dust-trail {
  position: absolute;
  bottom: -8px;
  right: 20px;
  display: flex;
  gap: 6px;
  opacity: 0;
}

.driving-truck.animate .dust-trail {
  animation: dustAppear 0.3s 0.4s ease forwards;
}

@keyframes dustAppear {
  to {
    opacity: 0.6;
  }
}

.dust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 31, 85, 0.15);
  animation: dustFloat 0.8s ease-out infinite;
}

.dust-dot:nth-child(2) {
  animation-delay: 0.15s;
  width: 4px;
  height: 4px;
}

.dust-dot:nth-child(3) {
  animation-delay: 0.3s;
  width: 3px;
  height: 3px;
}

@keyframes dustFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-20px, -10px) scale(0);
    opacity: 0;
  }
}

/* Road line behind truck */
.road-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 31, 85, 0.08) 0px,
    rgba(0, 31, 85, 0.08) 20px,
    transparent 20px,
    transparent 40px
  );
  transform: translateY(-50%);
  z-index: 1;
}

/* ===== Detail Panel ===== */
.detail-panel {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 31, 85, 0.06);
}

.detail-title {
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    font-weight: 700;
  color: #001f55;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

/* Event List */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.event-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  position: relative;
}

.event-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  transform: translateX(-50%);
  top: 50px;
  bottom: -18px;
  width: 2px;
  background: #e8ecf2;
}

.event-item.completed-event::after {
  background: linear-gradient(180deg, #001f55, rgba(0, 31, 85, 0.2));
}

.event-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.event-dot.dot-completed {
  background: rgba(0, 31, 85, 0.1);
}

.event-dot.dot-completed svg {
  color: #001f55;
  width: 14px;
  height: 14px;
}

.event-dot.dot-active {
  background: rgba(255, 66, 29, 0.12);
}

.event-dot.dot-active svg {
  color: #ff421d;
  width: 14px;
  height: 14px;
}

.event-dot.dot-pending {
  background: #f0f2f5;
}

.event-dot.dot-cancelled {
  background: rgba(225, 29, 72, 0.1);
}

.event-dot.dot-cancelled svg {
  color: #e11d48;
  width: 14px;
  height: 14px;
}

.event-dot.dot-cancelled.dot-active {
  background: rgba(225, 29, 72, 0.15);
}

.event-dot.dot-pending svg {
  color: #c5cbd6;
  width: 14px;
  height: 14px;
}

.event-info {
  flex: 1;
}

.event-name {
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f0f11;
  line-height: 1.3;
}

.event-item.pending-event .event-name {
  color: #a0a7b4;
}

.event-description {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
  color: #6b7280;
  margin-top: 3px;
  line-height: 1.5;
}

.event-instruction {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
  color: #001f55;
  margin-top: 4px;
  line-height: 1.5;
  padding: 6px 14px;
  background: #eef1f8;
  border-left: 3px solid #001f55;
  border-radius: 4px;
  width: fit-content;
}

.event-item.pending-event .event-description {
  color: #c0c5ce;
}

.event-time {
    font-family: "Inter", sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #9ca3af;
  white-space: nowrap;
  margin-top: 4px;
}

.event-item.pending-event .event-time {
  color: #d0d4db;
}

/* ===== Process Section (Bottom) ===== */
.process-section {
  padding: 80px 24px;
  background: #f8f9fa;
}

.process-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 0;
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 20px;
}

/* Connector line between process steps */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -10px;
  width: calc(100% - 80px);
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(0, 31, 85, 0.1),
    rgba(0, 31, 85, 0.06)
  );
  transform: translateX(50%);
}

@media (max-width: 768px) {
  .process-step:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .process-step::after {
    display: none !important;
  }
}

.process-icon-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(0, 31, 85, 0.08);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.4s ease;
}

.process-icon-ring:hover {
  border-color: rgba(255, 66, 29, 0.2);
  box-shadow: 0 8px 30px rgba(0, 31, 85, 0.06);
  transform: translateY(-4px);
}

.process-icon-ring svg {
  width: 30px;
  height: 30px;
  color: #ff421d;
}

.process-step-title {
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #001f55;
  margin-bottom: 8px;
}

.process-step-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #6b7280;
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}

/* ===== Lottie Loading ===== */
.lottie-loading-container {
  display: none;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  grid-area: 1 / 1;
}

.lottie-loading-container.visible {
  display: block;
}

.premium-pulse {
  background: linear-gradient(110deg, #f1f5f9 8%, #e2e8f0 18%, #f1f5f9 33%);
  background-size: 200% 100%;
  animation: premiumShine 1.5s linear infinite;
}

@keyframes premiumShine {
  to {
    background-position-x: -200%;
  }
}

/* ===== Error State ===== */
.error-message {
  display: none;
  grid-area: 1 / 1;
  z-index: 10;
}

.error-message.visible {
  display: block;
}

.error-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 66, 29, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.error-icon svg {
  width: 24px;
  height: 24px;
  color: #ff421d;
}

.error-title {
    font-family: "Outfit", sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #001f55;
  margin-bottom: 6px;
}

.error-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    color: #6b7280;
}
.event-item.pending-event .event-description {
  color: #c0c5ce;
}

.event-time {
  font-family: "Inter", sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9ca3af;
  white-space: nowrap;
  margin-top: 4px;
}

.event-item.pending-event .event-time {
  color: #d0d4db;
}

/* ===== Process Section (Bottom) ===== */
.process-section {
  padding: 80px 24px;
  background: #f8f9fa;
}

.process-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 0;
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 20px;
}

/* Connector line between process steps */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -10px;
  width: calc(100% - 80px);
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(0, 31, 85, 0.1),
    rgba(0, 31, 85, 0.06)
  );
  transform: translateX(50%);
}

@media (max-width: 768px) {
  .process-step:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .process-step::after {
    display: none !important;
  }
}

.process-icon-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(0, 31, 85, 0.08);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.4s ease;
}

.process-icon-ring:hover {
  border-color: rgba(255, 66, 29, 0.2);
  box-shadow: 0 8px 30px rgba(0, 31, 85, 0.06);
  transform: translateY(-4px);
}

.process-icon-ring svg {
  width: 30px;
  height: 30px;
  color: #ff421d;
}

.process-step-title {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #001f55;
  margin-bottom: 8px;
}

.process-step-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}

/* ===== Lottie Loading ===== */
.lottie-loading-container {
  display: none;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  grid-area: 1 / 1;
}

.lottie-loading-container.visible {
  display: block;
}

.premium-pulse {
  background: linear-gradient(110deg, #f1f5f9 8%, #e2e8f0 18%, #f1f5f9 33%);
  background-size: 200% 100%;
  animation: premiumShine 1.5s linear infinite;
}

@keyframes premiumShine {
  to {
    background-position-x: -200%;
  }
}

/* ===== Error State ===== */
.error-message {
  display: none;
  grid-area: 1 / 1;
  z-index: 10;
}

.error-message.visible {
  display: block;
}

.error-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 66, 29, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.error-icon svg {
  width: 24px;
  height: 24px;
  color: #ff421d;
}

.error-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #001f55;
  margin-bottom: 6px;
}

.error-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  color: #6b7280;
}

.mobile-only-time {
  display: none;
}

.partner-status {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.partner-date {
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9ca3af;
}

@media (max-width: 640px) {
  .partner-status {
    flex-direction: column-reverse;
    gap: 2px;
  }
}

/* ===== MOBILE ONLY OVERRIDES FOR TRACKING ===== */
@media (max-width: 640px) {
  /* Fix order header layout on mobile */
  .order-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    gap: 12px;
  }
  
  /* Timeline track centering fix with date moved to top */
  .step-date {
    order: -1;
    margin-top: 0;
    margin-bottom: 8px;
    height: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  
  /* Timeline container padding below scroll */
  .timeline-container {
    padding-bottom: 10px;
  }
  
  /* Event list Option 2: Date stacked at the top */
  .desktop-only-time {
    display: none;
  }
  .mobile-only-time {
    display: block;
    margin-bottom: 4px;
    font-size: 0.6875rem;
    color: #9ca3af;
    font-weight: 600;
  }
  .event-item {
    gap: 12px;
  }
}
