* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  color: #201d19;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.92), transparent 20%),
    radial-gradient(circle at 92% 8%, rgba(255, 241, 232, 0.58), transparent 24%),
    linear-gradient(180deg, #fbfaf7 0%, #f5f2ee 100%);
}

.page-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.glass-card {
  border-radius: 28px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.34) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.66) 0%, rgba(244, 240, 234, 0.24) 100%);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 24px 56px rgba(126, 118, 106, 0.12);
  backdrop-filter: blur(28px);
}

.hero-card h1,
.result-head h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.eyebrow,
.status-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #847b71;
}

.lead,
.hint {
  color: #70685e;
  line-height: 1.7;
}

.lead {
  margin: 14px 0 0;
  max-width: 720px;
}

.status-row,
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: #514a42;
  font-size: 14px;
  font-weight: 600;
}

.auth-detail {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(176, 67, 50, 0.08);
  border: 1px solid rgba(176, 67, 50, 0.14);
  color: #8f392c;
  font-size: 14px;
  line-height: 1.6;
}

.field {
  display: block;
  margin-top: 22px;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #302b25;
}

.field-input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1);
  font-size: 16px;
}

.field-file {
  padding: 12px 14px;
}

.primary-btn {
  margin-top: 26px;
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 243, 239, 0.42) 100%),
    linear-gradient(135deg, rgba(255, 248, 242, 0.58) 0%, rgba(242, 247, 255, 0.4) 100%);
  color: #24211d;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 16px 36px rgba(123, 115, 104, 0.12);
}

.primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.preview-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.preview-item {
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.88);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-card {
  align-items: center;
}

.qr-canvas {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin: 26px auto 18px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  .page-shell {
    padding: 24px 14px 40px;
  }

  .glass-card {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-card h1,
  .result-head h2 {
    font-size: 28px;
  }
}
