body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f0f2f5, #e3eaf5);
  margin: 0;
  padding: 40px 20px;
  text-align: center;
}

.container {
  max-width: 640px;
  margin: auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  animation: fadeIn 0.5s ease-in-out;
}

.logo {
  width: 90px;
  margin-bottom: 10px;
}

h1 {
  color: #1f3c86;
  margin-bottom: 8px;
  font-size: 28px;
}

.subtitle {
  color: #555;
  font-size: 16px;
  margin-bottom: 25px;
}

input[type="text"] {
  width: 100%;
  padding: 18px;
  font-size: 20px;
  border-radius: 12px;
  border: 2px solid #ccc;
  outline: none;
  box-sizing: border-box;
  transition: border 0.3s;
}

input[type="text"]:focus {
  border-color: #1f3c86;
  box-shadow: 0 0 6px rgba(31,60,134,0.3);
}

.result {
  margin-top: 30px;
  padding: 24px;
  border-radius: 16px;
  font-size: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result.success {
  background-color: #e6f9f0;
  border: 2px solid #27ae60;
}

.result.error {
  background-color: #ffeaea;
  border: 2px solid #e74c3c;
}

.result:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

.result .avatar {
  width: 400px !important;
  height: 400px !important;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.name {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  margin-top: 8px;
}

.role {
  font-size: 18px;
  color: #666;
  margin-bottom: 10px;
}

.scan-message {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 500;
}

/* Simple fade in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

audio {
  display: none;
}
