:root {
  --bg: #0b1020;
  --bg-card: #161d33;
  --accent: #4cc2ff;
  --accent-2: #7af7c0;
  --text: #e8edf7;
  --muted: #8a93ab;
  --danger: #ff6b6b;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(120% 120% at 50% 0%, #1a2444 0%, var(--bg) 60%);
  display: flex;
  justify-content: center;
}

.app {
  width: 100%;
  max-width: 520px;
  padding: 2rem 1.25rem 4rem;
}

.hero { text-align: center; margin-bottom: 2rem; }
.hero h1 { font-size: 2rem; margin: 0 0 .25rem; letter-spacing: .5px; }
.tagline { color: var(--muted); margin: 0; }

/* Big, thumb-friendly primary action */
.scan-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #04101e;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .08s ease, opacity .2s ease;
  box-shadow: 0 10px 30px rgba(76, 194, 255, .25);
}
.scan-btn:active { transform: scale(.98); }
.scan-btn:disabled { opacity: .65; cursor: progress; }

.scan-btn__spinner {
  display: none;
  width: 18px; height: 18px;
  margin-left: .6rem;
  border: 3px solid rgba(4, 16, 30, .35);
  border-top-color: #04101e;
  border-radius: 50%;
  vertical-align: middle;
  animation: spin .7s linear infinite;
}
.scan-btn.loading .scan-btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.status { text-align: center; margin: 1.25rem 0; min-height: 1.25rem; color: var(--muted); }
.status.error { color: var(--danger); }

.result { margin-top: 1rem; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, .06);
}
.callsign {
  margin: 0 0 1rem;
  font-size: 1.8rem;
  color: var(--accent);
  text-align: center;
  letter-spacing: 1px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0;
}
.stats div { display: flex; flex-direction: column; }
.stats dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stats dd { margin: .2rem 0 0; font-size: 1.15rem; font-weight: 600; }

.meta { text-align: center; color: var(--muted); font-size: .8rem; margin: 1rem 0 .5rem; }

.others { list-style: none; padding: 0; margin: .5rem 0 0; }
.others li {
  display: flex; justify-content: space-between;
  padding: .65rem .9rem;
  background: rgba(255, 255, 255, .03);
  border-radius: 10px;
  margin-bottom: .4rem;
  font-size: .9rem;
}
.others li span:last-child { color: var(--muted); }

@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
