:root {
  --bg0: #eef3f1;
  --bg1: #d9e7e2;
  --ink: #13241f;
  --muted: #5a7169;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(19, 36, 31, 0.1);
  --accent: #0f8a6a;
  --accent-ink: #063528;
  --danger: #b42318;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(19, 36, 31, 0.08);
  font-family: "Segoe UI", "SF Pro Display", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 10% -10%, #b7ebe0 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 0%, #c9d9ff 0%, transparent 45%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

body {
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
}

.shell {
  max-width: 440px;
  margin: 0 auto;
  animation: rise 0.45s ease-out both;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.brand {
  font-size: 1.55rem;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.order {
  color: var(--muted);
  font-size: 0.92rem;
}

.amount-block {
  padding: 22px 20px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  animation: rise 0.55s ease-out 0.05s both;
}

.amount-caption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.amount {
  font-size: 2.4rem;
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px;
}

.methods {
  margin-bottom: 16px;
  animation: rise 0.55s ease-out 0.1s both;
}

.method {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.method:active:not(.disabled) {
  transform: scale(0.985);
}

.method.active {
  border-color: rgba(15, 138, 106, 0.55);
  background: linear-gradient(135deg, rgba(15, 138, 106, 0.14), rgba(255, 255, 255, 0.85));
  box-shadow: inset 0 0 0 1px rgba(15, 138, 106, 0.15);
}

.method.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.method-name {
  font-weight: 650;
  font-size: 1.02rem;
}

.method-hint {
  color: var(--muted);
  font-size: 0.86rem;
}

.method-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  background: rgba(15, 138, 106, 0.12);
  padding: 4px 8px;
  border-radius: 999px;
}

.pay-card {
  padding: 18px 16px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: rise 0.55s ease-out 0.16s both;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.row:last-of-type {
  border-bottom: none;
}

.label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 3px;
}

.value {
  font-size: 1.05rem;
  font-weight: 650;
  word-break: break-word;
}

.copy {
  flex-shrink: 0;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.copy:active {
  transform: scale(0.96);
}

.copy.done {
  filter: saturate(0.7) brightness(1.05);
}

.note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
  font-size: 0.92rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg0: #0f1715;
    --bg1: #15221e;
    --ink: #eef7f3;
    --muted: #9bb0a8;
    --card: rgba(28, 42, 38, 0.88);
    --line: rgba(238, 247, 243, 0.1);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }

  body {
    background:
      radial-gradient(120% 80% at 10% -10%, rgba(15, 138, 106, 0.28) 0%, transparent 55%),
      radial-gradient(90% 70% at 100% 0%, rgba(70, 110, 180, 0.22) 0%, transparent 45%),
      linear-gradient(180deg, var(--bg0), var(--bg1));
  }
}
