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

:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  padding-top: max(2rem, env(safe-area-inset-top));
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.status {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.status.error {
  color: #f87171;
}

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

#map {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  background: var(--surface);
  z-index: 0;
}

.track-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.track-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.track-btn.active {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}

.coordinates {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.coordinates.hidden {
  display: none;
}

.coord-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.value {
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
