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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #f1f5f9;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  background: #1e293b;
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.distance {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: #38bdf8;
  margin-bottom: 0.25rem;
}

.unit {
  font-size: 1.25rem;
  font-weight: 500;
  color: #7dd3fc;
  margin-bottom: 2rem;
}

.status {
  font-size: 1rem;
  color: #94a3b8;
  min-height: 1.5rem;
}

.status.error {
  color: #f87171;
}

.status.success {
  color: #4ade80;
}

.status.finish {
  color: #fbbf24;
  font-weight: 600;
}

.coords-info {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #334155;
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.8;
}

.btn {
  margin-top: 1.5rem;
  background: #0ea5e9;
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}

.btn:active {
  background: #0284c7;
}

.btn:disabled {
  background: #334155;
  color: #64748b;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 3px solid #334155;
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 0.4rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
