:root {
  --black: #000000;
  --glass: rgba(255, 255, 255, 0.032);
  --glass-strong: rgba(255, 255, 255, 0.065);
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.045);
  --text: rgba(255, 255, 255, 0.92);
  --text-soft: rgba(255, 255, 255, 0.68);
  --text-muted: rgba(255, 255, 255, 0.48);
  --accent: #d4ff90;
  --accent-soft: rgba(212, 255, 144, 0.16);
  --accent-glow: rgba(212, 255, 144, 0.28);
  --success: #a5e95b;
  --error: #ff5555;
  --purple: #a78bfa;
  --pink: #f472b6;
  --shadow-glow: 0 0 18px rgba(212, 255, 144, 0.18);
  --radius: 22px;
  --radius-sm: 16px;
  --radius-lg: 30px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(212, 255, 144, 0.18) 0%, transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(167, 139, 250, 0.12) 0%, transparent 32%),
    radial-gradient(circle at 50% 90%, rgba(244, 114, 182, 0.10) 0%, transparent 36%),
    linear-gradient(180deg, #000000 0%, #050500 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

@keyframes flow { 0% { transform: translateX(-100%) skewX(-25deg); } 100% { transform: translateX(200%) skewX(-25deg); } }
@keyframes tap-feedback { 0% { transform: scale(1); } 50% { transform: scale(0.94); } 100% { transform: scale(1); } }
@keyframes icon-bounce { 0% { transform: scale(0) rotate(-12deg); opacity: 0; } 55% { transform: scale(1.18) rotate(3deg); opacity: 1; } 100% { transform: scale(1) rotate(0deg); opacity: 1; } }
@keyframes icon-float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-5px); } }
@keyframes icon-glow-pulse {
  0%, 100% { box-shadow: 0 0 25px rgba(212,255,144,0.35), 0 0 50px rgba(212,255,144,0.18); }
  50% { box-shadow: 0 0 30px rgba(212,255,144,0.45), 0 0 60px rgba(212,255,144,0.25); }
}
@keyframes ring-breath { 0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.75; } 50% { transform: translate(-50%,-50%) scale(1.08); opacity: 1; } }
@keyframes particle-orbit { 0% { transform: translate(-50%,-50%) rotate(0deg) translateX(48px) rotate(0deg); } 100% { transform: translate(-50%,-50%) rotate(360deg) translateX(48px) rotate(-360deg); } }
@keyframes float-breath { 0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.18; } 50% { transform: translate(-50%,-50%) scale(1.15); opacity: 0.35; } }
@keyframes star-twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.8); } 50% { opacity: 0.75; transform: scale(1.2); } }
.tap-active { animation: tap-feedback 0.18s ease-out; }

#particlesCanvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.glow-orb { position: fixed; border-radius: 50%; filter: blur(120px); z-index: 0; pointer-events: none; }
.orb-lime { width: 420px; height: 420px; background: var(--accent); top: 45%; left: 50%; transform: translate(-50%,-50%); animation: float-breath 5s ease-in-out infinite; opacity: 0.18; }
.orb-purple { width: 300px; height: 300px; background: var(--purple); top: 12%; right: 10%; animation: float-breath 7s ease-in-out infinite 1s; opacity: 0.15; }
.orb-pink { width: 280px; height: 280px; background: var(--pink); bottom: 18%; left: 10%; animation: float-breath 6s ease-in-out infinite 2s; opacity: 0.12; }
.star-deco { position: fixed; color: var(--accent); font-size: 12px; animation: star-twinkle 3.5s ease-in-out infinite; z-index: 0; pointer-events: none; }
.star1 { top: 12%; left: 10%; }
.star2 { top: 20%; right: 14%; animation-delay: 0.8s; font-size: 16px; }
.star3 { bottom: 22%; left: 12%; animation-delay: 1.6s; font-size: 10px; }
.star4 { bottom: 16%; right: 8%; animation-delay: 2.4s; font-size: 14px; }

.main { width: 100%; max-width: 480px; position: relative; z-index: 2; }

.liquid-card {
  background: var(--glass);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -1px 0 rgba(255,255,255,0.04), 0 35px 80px rgba(0,0,0,0.6), var(--shadow-glow);
  margin-bottom: 20px;
}
.liquid-card::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--purple), transparent);
  opacity: 0.8;
}
.liquid-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: flow 11s linear infinite;
  pointer-events: none;
}

.header { text-align: center; margin-bottom: 22px; position: relative; }
.icon-wrap { position: relative; display: inline-block; margin-bottom: 16px; }
.icon-glow-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 78px; height: 78px;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  border: 2px solid rgba(212,255,144,0.65);
  box-shadow: 0 0 20px rgba(212,255,144,0.55), 0 0 45px rgba(212,255,144,0.35), inset 0 0 18px rgba(212,255,144,0.25);
  animation: ring-breath 2.2s ease-in-out infinite;
}
.icon-glow-ring::before,
.icon-glow-ring::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(212,255,144,0.85);
  box-shadow: 0 0 12px rgba(212,255,144,0.8);
  animation: particle-orbit 3s linear infinite;
}
.icon-glow-ring::after {
  animation-delay: 1.5s;
  width: 8px; height: 8px;
  background: rgba(167,139,250,0.85);
  box-shadow: 0 0 12px rgba(167,139,250,0.8);
}
.icon-inner {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,0.14), transparent 35%), linear-gradient(135deg, rgba(212,255,144,0.9), rgba(165,233,91,0.9));
  display: flex; align-items: center; justify-content: center;
  animation: icon-bounce 0.7s ease-out forwards, icon-glow-pulse 2.8s ease-in-out infinite 0.7s;
  position: relative; z-index: 2;
  overflow: hidden;
}
.icon-inner i { font-size: 2.2rem; color: #111; animation: icon-float 4s ease-in-out infinite 0.7s; }
.icon-inner img { width: 100%; height: 100%; object-fit: contain; animation: icon-float 4s ease-in-out infinite 0.7s; }
.header h1 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.5px; color: var(--text); }
.header p { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; line-height: 1.55; }

.section { margin-bottom: 18px; }
.section-title {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 12px; display: flex; align-items: center; gap: 7px;
}

.amount-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amount-item {
  background: var(--glass-strong);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 13px 8px;
  text-align: center;
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 3px;
}
.amount-item::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(212,255,144,0) 60%, rgba(212,255,144,0.12) 100%);
  opacity: 0;
  transition: 0.25s ease;
}
.amount-item:hover { color: var(--text); transform: translateY(-3px); border-color: rgba(212,255,144,0.22); box-shadow: 0 8px 18px rgba(0,0,0,0.35), 0 0 12px rgba(212,255,144,0.14); }
.amount-item:hover::before { opacity: 1; }
.amount-item.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 0 18px var(--accent-glow), inset 0 0 14px rgba(212,255,144,0.14);
}
.amount-item sub { font-size: 0.6rem; opacity: 0.55; }

.input-box {
  display: flex; align-items: center;
  background: var(--glass-strong);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 4px 4px 4px 14px;
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
}
.input-box:focus-within { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.input-box .prefix { color: var(--text-soft); font-size: 0.95rem; font-weight: 600; }
.input-box input {
  flex: 1; background: transparent; border: 0;
  padding: 11px 8px; font-size: 0.95rem;
  color: var(--text); outline: 0; font-weight: 500;
}
.input-box input::placeholder { color: var(--text-muted); }

.payment-list { display: flex; gap: 10px; }
.payment-item {
  flex: 1;
  background: var(--glass-strong);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center; cursor: pointer;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted);
  transition: 0.25s ease;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.payment-item i { font-size: 1.2rem; }
.payment-item:hover { color: var(--text); transform: translateY(-2px); border-color: rgba(212,255,144,0.18); box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
.payment-item.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #111;
  box-shadow: 0 0 14px var(--accent-glow), inset 0 0 12px rgba(212,255,144,0.12);
}

.btn {
  width: 100%; height: 50px;
  background: linear-gradient(135deg, rgba(212,255,144,0.95), rgba(165,233,91,0.95));
  border: 0;
  border-radius: var(--radius-sm);
  color: #111;
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 22px rgba(212,255,144,0.25);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  width: 120%; height: 100%;
  left: -110%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: flow 4.5s linear infinite;
}
.btn:hover { transform: translateY(-3px); background: linear-gradient(135deg, #d4ff90, #9be85c); box-shadow: 0 12px 32px rgba(212,255,144,0.35); }
.btn:active { transform: translateY(-1px) scale(0.985); }

.message { min-height: 22px; margin-top: 12px; font-size: 0.8rem; text-align: center; }

.recent-card {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 45px rgba(0,0,0,0.55);
}
.recent-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 8px;
}
.recent-header i { font-size: 14px; color: var(--accent); }
.recent-title { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 1px; }
.recent-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.25s;
}
.recent-item:last-child { border-bottom: none; }
.recent-item:hover { background: var(--glass-strong); }
.recent-user { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,255,144,0.9), rgba(165,233,91,0.9));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: #111; flex-shrink: 0;
}
.user-name { font-size: 12px; font-weight: 600; color: var(--text); }
.user-message { font-size: 11px; color: var(--text-muted); margin-top: 1px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reward-amount { font-size: 13px; font-weight: 700; color: var(--accent); }
.no-records { padding: 32px 20px; text-align: center; color: var(--text-muted); font-size: 12px; letter-spacing: 0.5px; }
.no-records i { font-size: 28px; display: block; margin-bottom: 10px; opacity: 0.35; }

.footer {
  text-align: center;
  padding: 20px 0;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.footer .copyright { color: var(--text-soft); font-weight: 500; }

@media (max-width: 480px) {
  .liquid-card { padding: 22px 16px; }
  .amount-list { gap: 8px; }
  .amount-item { padding: 11px 4px; font-size: 0.8rem; }
  .payment-list { gap: 8px; }
  .payment-item { padding: 10px 4px; font-size: 0.7rem; }
  .recent-item { padding: 10px 14px; }
}
