* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}

h1 {
  margin: 0 0 4px;
  font-size: 1.6rem;
  color: #0f172a;
}

.subtitle {
  margin: 0 0 24px;
  color: #64748b;
  font-size: 0.9rem;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hidden {
  display: none !important;
}

label {
  text-align: left;
  font-size: 0.85rem;
  color: #334155;
  font-weight: 600;
}

input[type='number'] {
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.2s;
}

input[type='number']:focus {
  border-color: #2563eb;
}

textarea {
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.8rem;
  resize: none;
  font-family: monospace;
  color: #334155;
  background: #f8fafc;
}

.btn-primary {
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  padding: 10px 16px;
  border: 1px solid #2563eb;
  border-radius: 10px;
  background: #fff;
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #eff6ff;
}

.qr-wrapper {
  display: flex;
  justify-content: center;
  padding: 8px;
  background: #f8fafc;
  border-radius: 12px;
}

.qr-wrapper img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #334155;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 8px;
}

.info-row strong {
  color: #0f172a;
  word-break: break-all;
  text-align: right;
  margin-left: 12px;
}

.error-message {
  color: #dc2626;
  font-size: 0.85rem;
  margin: 0;
}

.approved-message {
  font-size: 1.3rem;
  font-weight: 700;
  color: #16a34a;
  margin: 0 0 8px;
}

.spinner {
  align-self: center;
  width: 22px;
  height: 22px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-top: 4px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .card {
    padding: 24px 18px;
  }

  .qr-wrapper img {
    width: 180px;
    height: 180px;
  }
}
