:root {
  --bg1: #c17c14;
  --bg2: #002a84;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #e5e7eb;
  --muted: #2b4466;
  --accent: #60a5fa;
  --accent2: #22c55e;
  --danger: #f87171;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, #bebebe 0%, transparent 30%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
}

body {
  display: grid;
  place-items: center;
  padding: 20px;
}

.app {
  width: 100%;
  max-width: 480px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px 22px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.subtitle {
  margin: 10px auto 22px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: bolder;
}

.btn {
  appearance: none;
  border: none;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: 16px;
  cursor: pointer;
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 12px 30px rgba(96, 165, 250, 0.28);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.status-wrap {
  margin: 16px 0 18px;
  min-height: 28px;
}

.status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.qr-wrap {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  padding: 18px;
}

#qr {
  width: 340px;
  height: 340px;
  max-width: 100%;
  background: white;
  padding: 10px;
  border-radius: 16px;
}

@media (max-width: 420px) {
  .card {
    padding: 22px 16px;
    border-radius: 20px;
  }

  h1 {
    font-size: 1.7rem;
  }

  #qr {
    width: 300px;
    height: 300px;
  }
}