/* Mobile-first, clean look */
:root {
  --bg: #0b0f14;
  --card: #111827;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #06b6d4;
  --success: #22c55e;
  --danger: #ef4444;
}

html, body {
  height: 100%;
  background: linear-gradient(160deg, #0b0f14 0%, #0f172a 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container-narrow {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.brand {
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--text);
}
.brand .dot { color: var(--accent); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:active, .btn-primary:focus, .btn-primary:hover { opacity: .92; }

.form-label { color: var(--muted); }

.small-link a { color: var(--muted); text-decoration: none; }
.small-link a:hover { color: var(--text); }

/* F1 lights */
.lights {
  display: flex; gap: 10px; justify-content: center; margin-top: 16px;
}
.light {
  width: 40px; height: 40px; border-radius: 999px; background: #2b2b2b;
  border: 2px solid #1f2937; box-shadow: inset 0 0 10px rgba(0,0,0,.6);
}
.light.red.on { background: #e11d48; box-shadow: 0 0 20px rgba(225,29,72,.8); }
.light.green { background: #14532d; }
.light.green.on { background: #22c55e; box-shadow: 0 0 20px rgba(34,197,94,.8); }

.scan-status { text-align:center; margin-top:12px; color: var(--muted); }
.scan-status.ok { color: var(--success); font-weight: 600; }
.scan-status.err { color: var(--danger); font-weight: 600; }
.barcode-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
  margin-top: 16px;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.barcode-wrap svg {
  width: 100%;
  height: auto;
  max-height: 140px;
  display: block;
  object-fit: contain;
}

.barcode-wrap small {
  margin-top: 10px;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--muted);
  word-break: break-all;
  text-align: center;
}

/* keep proportions tighter on mobile */
@media (max-width: 576px) {
  .barcode-wrap {
    max-width: 100%;
    padding: 10px 12px;
  }
  .barcode-wrap svg {
    max-height: 110px;
  }
}


footer {
  opacity: 0.8;
  margin-top: 40px;
}
footer div:first-child {
  font-style: italic;
}
