body {
  margin: 0;
  font-family: Roboto, sans-serif;
  background: linear-gradient(135deg, #dbeafe, #eef2ff);
  display: flex;
  justify-content: center;
  padding: 20px;
}
.phone {
  width: 390px;
  height: 844px;
  background: #111;
  border-radius: 42px;
  padding: 8px;
}
.notch {
  width: 140px;
  height: 24px;
  background: #000;
  margin: auto;
  border-radius: 0 0 18px 18px;
}
.app {
  height: 100%;
  background: #f4f7fb;
  border-radius: 34px;
  overflow: auto;
}
.view {
  display: none;
  padding: 16px;
}
.active {
  display: block;
}
.topbar {
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  color: #fff;
  padding: 18px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
}
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge,
.chip {
  background: #fff;
  color: #5b21b6;
  padding: 6px 10px;
  border-radius: 20px;
}
.card,
.hero,
.mini,
.login-card {
  background: #fff;
  border-radius: 24px;
  padding: 16px;
  margin-top: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.route .line {
  font-size: 42px;
  font-weight: 700;
}
.meta {
  margin-top: 10px;
  color: #555;
}
.hero {
  background: linear-gradient(135deg, #1565c0, #42a5f5);
  color: #fff;
}
.timer {
  font-size: 46px;
  font-weight: 700;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mini {
  text-align: center;
}
.quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick div {
  background: #fff;
  padding: 18px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
button {
  border: 0;
  border-radius: 14px;
  padding: 14px;
  background: #1e88e5;
  color: #fff;
  width: 100%;
}
.danger {
  background: #c62828;
}
input,
textarea {
  width: 100%;
  padding: 12px;
  margin: 6px 0;
  border: 1px solid #ccc;
  border-radius: 12px;
}
nav {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 14px;
  display: flex;
  justify-content: space-around;
}
.dark .app {
  background: #1f2937;
  color: #fff;
}
.dark .card,
.dark .mini,
.dark .login-card {
  background: #374151;
  color: #fff;
}
#toast {
  display: none;
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 10px 16px;
  border-radius: 18px;
}
