:root {
  --primary-blue: #0052cc;
  --dark-blue: #002346;
  --light-grey: #f4f7f9;
  --text-dark: #333;
  --text-light: #555;
  --border-light: #e8ecf0;
  --status-ok: #28a745;
  --status-error: #d93025;
  --shadow-light: 0 8px 30px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #044cb8, #0052cc);
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--light-grey);
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.welcome-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}
.welcome-card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  border: 1px solid var(--border-light);
  text-align: center;
  box-shadow: var(--shadow-light);
}
.branding-logo {
  max-width: 180px;
  margin-bottom: 20px;
}
h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-blue);
  margin: 0 0 10px;
}
p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 16px;
}

.scan-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 82, 204, 0.25);
}
.scan-button:active {
  transform: scale(0.98);
}

.hidden {
  display: none;
}

.small {
  font-size: 13px;
  color: var(--text-light);
  opacity: 0.85;
  margin-top: 8px;
}

.input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 16px;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.thumb {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  object-fit: cover;
  aspect-ratio: 1/1;
}
.meta {
  text-align: left;
  font-size: 12px;
  color: var(--text-light);
  margin: 8px 0 0;
}
.row {
  display: flex;
  gap: 10px;
}
.row > button {
  flex: 1;
}
