:root {
  --bg-1: #071427;
  --bg-2: #102a42;
  --card: rgba(255, 255, 255, 0.1);
  --text: #f7fbff;
  --muted: #c3d3e4;
  --accent: #26c17e;
  --accent-2: #1ea56b;
  --danger: #ff6f7c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, #2e5f93 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #1a3c61 0%, transparent 65%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

.screen {
  min-height: 100dvh;
  display: block;
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 20px;
  padding: 20px 16px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.chip {
  margin: 0 0 8px;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6e7f7;
}

h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
}

.hint {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  white-space: pre-line;
}

.payment-meta {
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}

.payment-meta[hidden] {
  display: none !important;
}

.meta-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.14);
  font-size: 14px;
  min-width: 0;
}

.meta-row span {
  color: var(--muted);
  font-weight: 700;
}

.meta-row b,
.meta-row code {
  color: var(--text);
  font-weight: 800;
  min-width: 0;
}

.meta-row code {
  font-family: "Manrope", sans-serif;
}

.amount-row b {
  text-align: right;
}

.memo-row {
  grid-template-columns: 1fr;
  gap: 6px;
}

.memo-row code {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 13px;
}

.actions {
  display: grid;
  gap: 10px;
}

.cta {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.cta:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.cta:not(:disabled):active {
  transform: translateY(1px);
}

.cta.danger {
  background: linear-gradient(180deg, #ff7a89, #e15062);
}

.cta.secondary {
  background: linear-gradient(180deg, #466282, #344d6b);
}

.status {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 14px;
}

.status.error {
  color: var(--danger);
}

.status.ok {
  color: #7dffb7;
}
