:root {
  color-scheme: dark;
  --bg-a: #171433;
  --bg-b: #0d6b8f;
  --bg-c: #e05f5f;
  --paper: rgba(255, 255, 255, 0.12);
  --paper-strong: rgba(255, 255, 255, 0.18);
  --text: #fffaf2;
  --muted: rgba(255, 250, 242, 0.72);
  --line: rgba(255, 255, 255, 0.22);
  --accent: #ffe08a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 224, 138, 0.35), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(81, 213, 197, 0.42), transparent 28%),
    linear-gradient(135deg, var(--bg-a), var(--bg-b), var(--bg-c));
  background-size: 160% 160%;
  animation: flow 16s ease-in-out infinite;
}

@keyframes flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.panel {
  width: min(440px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.status {
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.amount {
  margin: 24px 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.qr-frame {
  display: grid;
  place-items: center;
  width: min(320px, 100%);
  aspect-ratio: 1;
  margin: 26px auto;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.loader {
  width: 72px;
  height: 72px;
  border: 5px solid rgba(23, 20, 51, 0.16);
  border-top-color: var(--bg-b);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #1c1938;
  background: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  color: var(--text);
  background: var(--paper-strong);
}

.fine {
  margin-top: 18px;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

@media (max-width: 520px) {
  .shell {
    padding: 16px;
  }

  .panel {
    padding: 22px;
  }

  .brand {
    margin-bottom: 22px;
  }
}
