:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  color: #1f2937;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 20px
    max(24px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #f8fbff 0%, #f4f6f8 100%);
}

.pay-card {
  width: min(100%, 390px);
  min-height: 360px;
  padding: 38px 28px 30px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(31, 41, 55, 0.08);
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 20px;
  line-height: 30px;
  font-weight: 650;
}

.spinner {
  width: 38px;
  height: 38px;
  margin: 34px auto 20px;
  border: 3px solid #e5e7eb;
  border-top-color: #07c160;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner.hidden {
  display: none;
}

.status {
  margin: 0;
  color: #111827;
  font-size: 17px;
  line-height: 26px;
  font-weight: 600;
}

.detail {
  min-height: 22px;
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 22px;
}

.actions {
  margin-top: 26px;
}

button {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

button + button {
  margin-top: 12px;
}

.primary {
  background: #07c160;
  color: #fff;
}

.secondary {
  background: #f3f4f6;
  color: #374151;
}

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

@media (max-height: 520px) {
  .pay-card {
    min-height: 0;
    padding-top: 24px;
  }

  .spinner {
    margin-top: 22px;
  }
}
