:root {
  --bg0: #050810;
  --bg1: #0a1224;
  --card: rgba(255, 255, 255, 0.055);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #eef2fb;
  --muted: #93a4c3;
  --accent: #4f8cff;
  --accent-hover: #6ba0ff;
  --ok: #5ee9a8;
  --err: #ff8a8a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans TC", system-ui, -apple-system, sans-serif;
  background: var(--bg0);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(79, 140, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(120, 80, 255, 0.12), transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 45%, #0d1830);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 4px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, #4f8cff, #7c5cff);
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.35);
}

.brand-kicker {
  margin: 0 0 2px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.glass {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.card {
  padding: 28px 26px 24px;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.content { margin-top: 8px; }

.amount {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  margin: 12px 0 8px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fff, #b8ccff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.payee-line {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 4px;
}

.notes {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: 12px 0;
  font-size: 0.9rem;
}

.btn {
  width: 100%;
  margin-top: 18px;
  padding: 15px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #6b5cff);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 10px 28px rgba(79, 140, 255, 0.28);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 32px rgba(79, 140, 255, 0.35);
}

.btn:active:not(:disabled) { transform: translateY(0); }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

#tsMount {
  display: flex;
  justify-content: center;
  margin: 16px 0 4px;
}

.err {
  color: var(--err);
  margin-top: 14px;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 100, 100, 0.08);
  border: 1px solid rgba(255, 120, 120, 0.2);
}

.ok {
  color: var(--ok);
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 500;
}

.status-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(94, 233, 168, 0.12);
  border: 1px solid rgba(94, 233, 168, 0.25);
  color: var(--ok);
}

.foot {
  text-align: center;
  font-size: 0.78rem;
  padding-top: 8px;
}

code {
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 480px) {
  .shell { padding: 24px 0; }
  .card { padding: 22px 18px 20px; }
}
