:root {
  --bg: #0B0118;
  --bg2: #1F0A38;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 215, 0, 0.15);
  --gold: #F0B90B;
  --gold2: #FFD700;
  --gold-glow: rgba(240, 185, 11, 0.4);
  --red: #E84B4B;
  --green: #2ED573;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Hero */
.hero {
  text-align: center;
  margin-top: 8px;
}
.banner {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 12px 36px var(--gold-glow), 0 0 0 1px rgba(240, 185, 11, 0.2);
}
.badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.chip-gold {
  background: linear-gradient(135deg, #FFD700, #F0B90B);
  color: #1a1100;
}
.chip-green {
  background: rgba(46, 213, 115, 0.18);
  color: var(--green);
  border: 1px solid rgba(46, 213, 115, 0.35);
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(6px);
}

.primary-card .row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.hint {
  color: var(--muted);
  font-size: 11px;
}

.addr-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(240, 185, 11, 0.4);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s;
}
.addr-box:active {
  background: rgba(240, 185, 11, 0.08);
}
.addr-box code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
  color: var(--gold2);
  letter-spacing: 0.3px;
}
.copy-icon {
  margin-left: 10px;
  font-size: 18px;
  flex-shrink: 0;
}

.amount-row {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(232, 75, 75, 0.08);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
}
.amount-label { color: var(--muted); font-size: 12px; }
.amount-value {
  color: var(--gold2);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.amount-note { color: var(--muted); font-size: 10.5px; }

/* Howto */
.howto .title {
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px;
}
.steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
}
.steps li { font-size: 13px; line-height: 1.55; }
.steps strong { color: var(--gold2); }

/* Live feed */
.live-feed .title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.live-feed .title {
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
}
.dot-live {
  color: var(--green);
  animation: blink 1.4s infinite;
  font-size: 10px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  max-height: 140px;
  overflow: hidden;
}
.feed li {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  animation: slidein 0.35s ease-out;
}
.feed .addr-frag {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--gold2);
}
.feed .stat-ok {
  color: var(--green);
}
@keyframes slidein {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.counter {
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.counter strong { color: var(--gold); }

/* CTA */
.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.btn {
  display: block;
  text-align: center;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: transform 0.1s ease-out, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-gold {
  color: #1a1100;
  background: linear-gradient(135deg, #FFD700, #F0B90B);
  box-shadow: 0 6px 22px rgba(240, 185, 11, 0.3);
}
.btn-rescue {
  color: var(--text);
  background: rgba(232, 75, 75, 0.15);
  border: 1px solid rgba(232, 75, 75, 0.45);
}

footer {
  margin-top: 12px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
}
footer .muted { color: rgba(255, 255, 255, 0.35); font-size: 10.5px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(46, 213, 115, 0.95);
  color: #062013;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
