
body, html {
  margin: 0;
  padding: 0;
  background: #0A0A0A;
  min-height: 100vh;
}

#app {
  position: relative;
  z-index: 1;
}

#card {
  width: 100%;
  max-width: 440px;
  background: #111;
  border: 1px solid rgba(103,194,105,0.2);
  border-radius: 20px;
  padding: 32px;
  box-sizing: border-box;
}

/* Animation block */
#anim-box {
  position: relative;
  background: rgba(103,194,105,0.06);
  border: 1px solid rgba(103,194,105,0.12);
  border-radius: 14px;
  height: 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pin {
  position: absolute;
  z-index: 2;
}
.pin-start {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.pin-end {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

#dashed-line {
  position: absolute;
  left: 48px;
  right: 48px;
  top: 50%;
  border-top: 2px dashed rgba(103,194,105,0.25);
}

#courier {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  animation: rideToPin 2.8s cubic-bezier(0.4,0,0.2,1) infinite;
}

@keyframes rideToPin {
  0%   { left: 36px; }
  65%  { left: calc(100% - 76px); }
  80%  { left: calc(100% - 70px); }
  95%  { left: 36px; }
  100% { left: 36px; }
}

/* Content */
#title {
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin: 24px 0 0 0;
}

#subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 8px 0 24px 0;
  line-height: 1.5;
}

#ref-input {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 16px;
  color: #fff;
  font-size: 15px;
  font-family: monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}
#ref-input::placeholder {
  color: #555;
  text-transform: none;
}
#ref-input:focus {
  border-color: #67C269;
}

#error-msg {
  font-size: 12px;
  color: #f87171;
  margin: 8px 0;
  display: none;
}

#track-btn {
  width: 100%;
  background: #67C269;
  color: #0A0A0A;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
}
#track-btn:hover {
  box-shadow: 0 0 30px rgba(103,194,105,0.45);
  transform: translateY(-2px);
}
