* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
  background: #f4f7fb;
  color: #1f2937;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

h1 {
  font-size: 2.4rem;
  color: #0b3c82; /* deep trust blue */
  margin-bottom: 10px;
}

.subtitle {
  color: #4b5563;
  margin-bottom: 40px;
  line-height: 1.5;
}

.card {
  background: white;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

input {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  margin-bottom: 16px;
}

input:focus {
  outline: none;
  border-color: #0b3c82;
}

.button-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

button {
  padding: 12px 18px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

#generateBtn {
  background: #0b3c82;
  color: white;
}

#generateBtn:hover {
  background: #092f66;
}

#downloadBtn {
  background: #e5e7eb;
  color: #374151;
}

#downloadBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.arrow {
  font-size: 6rem;
  color: #0b3c82;
  margin: 30px 0;
}

.qr-card {
  min-height: 260px; /* IMPORTANT: keeps size even before QR exists */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#qrCanvas {
  display: none;
}

#qrPlaceholder {
  color: #6b7280;
}

.footer-text {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #6b7280;
}