
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --bg-card: #1a1a3e;
  --bg-card-hover: #222255;
  --bg-input: #151530;
  --text-primary: #e8e8f0;
  --text-secondary: #8888aa;
  --text-muted: #555577;
  --accent-primary: #6c5ce7;
  --accent-secondary: #a29bfe;
  --accent-gold: #ffd700;
  --accent-silver: #c0c0c0;
  --accent-purple: #9b59b6;
  --accent-red: #e74c3c;
  --accent-green: #2ecc71;
  --accent-blue: #3498db;
  --border-color: #2a2a5a;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.3);
  --transition: all 0.3s ease;

  /* Prize colors */
  --prize-1x: #c0c0c0;
  --prize-2x: #ffd700;
  --prize-5x: #9b59b6;
  --prize-10x: #e74c3c;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: calc(60px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
}

.hidden { display: none !important; }

.test-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: linear-gradient(90deg, #e74c3c, #f39c12);
  color: #fff;
  text-align: center;
  padding: 4px 12px;
  padding-top: calc(4px + env(safe-area-inset-top, 0px));
  font-size: 12px;
  font-weight: 600;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.test-banner:not(.hidden) ~ .header {
  top: 28px;
}

.test-banner:not(.hidden) ~ .main {
  padding-top: 28px;
}

.header-left { display: flex; align-items: center; }
.logo { font-size: 20px; font-weight: 700; color: var(--accent-primary); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.logo-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.header-right { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.wallet-display {
  font-size: 12px;
  color: var(--accent-secondary);
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: 20px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-disconnect {
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-disconnect:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
}
.btn-primary:hover { background: #7d6ff0; }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: var(--bg-card-hover); }

.btn-buy {
  background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
  color: #fff;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-glow);
}
.btn-buy:hover { box-shadow: 0 0 30px rgba(108, 92, 231, 0.5); }

.btn-danger {
  background: var(--accent-red);
  color: #fff;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 18px;
}

.btn-sm { padding: 6px 14px; font-size: 12px; }

.input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.input:focus { border-color: var(--accent-primary); box-shadow: var(--shadow-glow); }
.input::placeholder { color: var(--text-muted); }

.buy-input {
  width: 60px;
  text-align: center;
  padding: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  outline: none;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  margin: 12px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }

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

.page-title {
  font-size: 20px;
  text-align: center;
  padding: 16px;
  color: var(--accent-secondary);
}

.hero-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, #1e1e50 100%);
  border-color: var(--accent-primary);
}

.hero-info {
  text-align: center;
  margin-bottom: 16px;
}

.prize-info {
  margin-bottom: 12px;
}
.prize-icon { font-size: 36px; }
.prize-text { font-size: 18px; font-weight: 700; color: var(--accent-gold); margin-left: 8px; }

.price-info {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.price-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-secondary);
  margin: 0 4px;
}
.token-symbol { color: var(--text-secondary); font-size: 13px; }

.win-rate-info {
  font-size: 14px;
  color: var(--text-secondary);
}
.rate-value { font-weight: 700; color: var(--accent-green); margin-left: 4px; }

.buy-section { margin-top: 16px; }
.buy-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pool-card { border-color: var(--accent-gold); }
.pool-amount { text-align: center; margin: 12px 0; }
.pool-value { font-size: 32px; font-weight: 700; color: var(--accent-gold); }
.pool-value-lg { font-size: 40px; font-weight: 700; color: var(--accent-gold); }
.pool-info {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 6px 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0 4px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-gold));
  border-radius: 4px;
  transition: width 0.5s ease;
}
.progress-text {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-item {
  text-align: center;
  padding: 8px;
  background: var(--bg-input);
  border-radius: var(--border-radius-sm);
}
.stat-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.stat-value { display: block; font-size: 18px; font-weight: 700; color: var(--accent-secondary); }

.backpack-list { padding: 0 12px; }
.backpack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.backpack-item:hover { background: var(--bg-card-hover); }
.backpack-item:active { transform: scale(0.98); }

.backpack-item-info { flex: 1; }
.backpack-item-id { font-size: 13px; color: var(--text-secondary); }
.backpack-item-date { font-size: 11px; color: var(--text-muted); }

.backpack-item-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.status-unscratched { background: var(--accent-blue); color: #fff; }
.status-scratching { background: var(--accent-primary); color: #fff; }
.status-scratched { background: var(--accent-gold); color: #000; }
.status-settled { background: var(--accent-green); color: #fff; }

.backpack-item-prize {
  margin-top: 4px;
}
.backpack-item-prize .prize-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.prize-badge-1x { background: var(--prize-1x); color: #000; }
.prize-badge-2x { background: var(--prize-2x); color: #000; }
.prize-badge-5x { background: var(--prize-5x); color: #fff; }
.prize-badge-10x { background: var(--prize-10x); color: #fff; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.scratch-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.scratch-card-info { flex: 1; text-align: right; }
.card-id { font-size: 12px; color: var(--text-muted); }
.scratch-progress { font-size: 12px; color: var(--accent-secondary); margin-left: 8px; }

.scratch-container {
  padding: 12px;
  display: flex;
  justify-content: center;
}

/* xy7 scratch page: dark background matching xy7.html */
#page-scratch .scratch-container {
  background: #111;
  min-height: calc(100vh - 130px);
  align-items: center;
  padding: 0;
}
#scratch-theme-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.scratch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  max-width: 400px;
  width: 100%;
}

.scratch-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.scratch-cell-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  z-index: 1;
}

.scratch-cell-icon {
  font-size: 24px;
  line-height: 1;
}

.scratch-cell-text {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.scratch-cell-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--border-radius-sm);
  touch-action: none;
}

.scratch-cell.winning .scratch-cell-content {
  border-color: var(--accent-silver);
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
}
.scratch-cell.prize-1x .scratch-cell-content {
  border-color: var(--prize-1x);
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
}
.scratch-cell.prize-2x .scratch-cell-content {
  border-color: var(--prize-2x);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}
.scratch-cell.prize-5x .scratch-cell-content {
  border-color: var(--prize-5x);
  box-shadow: 0 0 20px rgba(155, 89, 182, 0.6);
  animation: glow-purple 1.5s ease-in-out infinite alternate;
}
.scratch-cell.prize-10x .scratch-cell-content {
  border-color: var(--prize-10x);
  box-shadow: 0 0 25px rgba(231, 76, 60, 0.7);
  animation: glow-red 1s ease-in-out infinite alternate;
}

@keyframes glow-purple {
  from { box-shadow: 0 0 15px rgba(155, 89, 182, 0.4); }
  to { box-shadow: 0 0 30px rgba(155, 89, 182, 0.8); }
}
@keyframes glow-red {
  from { box-shadow: 0 0 20px rgba(231, 76, 60, 0.5); }
  to { box-shadow: 0 0 40px rgba(231, 76, 60, 0.9); }
}

.scratch-result {
  text-align: center;
  padding: 20px 16px;
}
.result-content { margin-bottom: 16px; }
.result-win {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-gold);
}
.result-lose {
  font-size: 18px;
  color: var(--text-muted);
}
.result-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 8px 0;
}

.referral-code {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  padding: 16px;
  background: var(--bg-input);
  border: 2px dashed var(--accent-primary);
  border-radius: var(--border-radius);
  margin-bottom: 12px;
  letter-spacing: 2px;
  color: var(--accent-secondary);
  user-select: all;
}

.bind-section {
  display: flex;
  gap: 8px;
  align-items: center;
}
.bind-section .input { flex: 1; }

.test-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.test-controls .btn { flex: 1; min-width: 100px; }

.test-stats {
  font-family: monospace;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-secondary);
  background: var(--bg-input);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.prize-dist { display: flex; flex-direction: column; gap: 8px; }
.dist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: var(--bg-input);
  border-radius: var(--border-radius-sm);
}
.dist-label { font-weight: 700; }
.dist-1x .dist-label { color: var(--prize-1x); }
.dist-2x .dist-label { color: var(--prize-2x); }
.dist-5x .dist-label { color: var(--prize-5x); }
.dist-10x .dist-label { color: var(--prize-10x); }
.dist-value { color: var(--text-primary); }

.history-list { max-height: 400px; overflow-y: auto; }
.history-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}
.history-item:last-child { border-bottom: none; }
.history-time { color: var(--text-muted); font-size: 11px; }
.history-amount { color: var(--accent-gold); font-weight: 600; }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  padding-bottom: env(safe-area-inset-bottom, 6px);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.nav-btn.active { color: var(--accent-primary); }
.nav-icon { font-size: 20px; }
.nav-label { font-size: 10px; }

.toast-container {
  position: fixed;
  top: 70px;
  right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  font-weight: 500;
  animation: slideIn 0.3s ease, fadeOut 0.5s ease 2.5s forwards;
  pointer-events: auto;
  max-width: 300px;
}
.toast-success { background: var(--accent-green); color: #fff; }
.toast-error { background: var(--accent-red); color: #fff; }
.toast-info { background: var(--accent-blue); color: #fff; }
.toast-warning { background: var(--accent-gold); color: #000; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.big-win-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.big-win-content {
  text-align: center;
  z-index: 3001;
  animation: bounceIn 0.5s ease;
}

.big-win-icon { font-size: 80px; margin-bottom: 16px; }
.big-win-text { font-size: 24px; font-weight: 700; color: var(--accent-gold); margin-bottom: 8px; }
.big-win-amount {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

.wallet-selector-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.wallet-selector-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  animation: bounceIn 0.3s ease;
}

.wallet-selector-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 20px;
}

.wallet-selector-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.wallet-selector-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
}

.wallet-selector-btn:active {
  transform: scale(0.98);
}

.wallet-selector-icon {
  font-size: 24px;
  width: 32px;
  text-align: center;
}

.wallet-selector-name {
  flex: 1;
}

.wallet-selector-cancel {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}

.wallet-selector-cancel:hover {
  color: var(--text-primary);
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-muted);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

@media (min-width: 480px) {
  .scratch-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 500px;
  }
  .scratch-cell-icon { font-size: 30px; }
}

@media (min-width: 768px) {
  body { max-width: 600px; margin: 0 auto; }
  .header { max-width: 600px; left: 50%; transform: translateX(-50%); }
  .bottom-nav { max-width: 600px; left: 50%; transform: translateX(-50%); }
  .test-banner { max-width: 600px; left: 50%; transform: translateX(-50%); }
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

::selection { background: var(--accent-primary); color: #fff; }

/* ============================================================
   Theme: xy7 (幸运7) — based on models/xy7.html
   ============================================================ */
.xy7-ticket-wrap {
  position: relative;
  touch-action: none;
  line-height: 0;
}
.xy7-ticket-wrap img {
  display: block;
  max-height: 85vh;
  max-width: 95vw;
  pointer-events: none;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,.7);
}
.xy7-scratch-zone {
  position: absolute;
  overflow: hidden;
}
.xy7-scratch-zone canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#xy7PrizeCanvas {
  z-index: 1;
}
#xy7ScratchCanvas {
  z-index: 2;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='17' fill='%23C0C0C0' stroke='%23999' stroke-width='1.5'/%3E%3Ccircle cx='20' cy='20' r='13' fill='%23D4D4D4'/%3E%3Ccircle cx='20' cy='20' r='9' fill='%23E0E0E0'/%3E%3Ctext x='20' y='25' text-anchor='middle' font-size='14' font-weight='bold' fill='%23888' font-family='Arial'%3E%C2%A5%3C/text%3E%3C/svg%3E") 20 20, crosshair;
}

/* xy7 result overlay */
.xy7-result-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
  transition: background .4s;
}
.xy7-result-overlay.show {
  background: rgba(0,0,0,.55);
  pointer-events: auto;
}
.xy7-result-box {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 2px solid rgba(255,255,255,.1);
  color: #fff;
  padding: 36px 56px;
  border-radius: 20px;
  text-align: center;
  transform: scale(0);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.xy7-result-overlay.show .xy7-result-box {
  transform: scale(1);
}
.xy7-result-box .title {
  font-size: 26px;
  margin-bottom: 8px;
}
.xy7-result-box .amount {
  font-size: 42px;
  font-weight: bold;
  margin-top: 10px;
}
.xy7-result-box .amount.win {
  color: #f5af19;
}
.xy7-result-box .amount.lose {
  color: #aaa;
  font-size: 28px;
}
.xy7-result-box .sub {
  font-size: 14px;
  color: #999;
  margin-top: 6px;
}
.xy7-result-box .close-btn {
  margin-top: 20px;
  padding: 8px 28px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: background .2s;
}
.xy7-result-box .close-btn:hover {
  background: rgba(255,255,255,.2);
}

/* ============================================================
   分红列表 & 亏损列表
   ============================================================ */
.dividend-card {
  border-color: var(--accent-gold);
}
.loss-card {
  border-color: var(--accent-red);
}

.user-list {
  max-height: 300px;
  overflow-y: auto;
}
.user-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 4px;
  background: var(--bg-input);
  border-radius: var(--border-radius-sm);
  font-size: 13px;
}
.user-list-item:nth-child(1) { background: rgba(255, 215, 0, 0.1); }
.user-list-item:nth-child(2) { background: rgba(192, 192, 192, 0.08); }
.user-list-item:nth-child(3) { background: rgba(205, 127, 50, 0.08); }

.user-list-wallet {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-secondary);
  word-break: break-all;
  max-width: 60%;
}
.user-list-rank {
  font-weight: 700;
  color: var(--accent-gold);
  margin-right: 8px;
  min-width: 20px;
}
.user-list-amount {
  font-weight: 600;
  white-space: nowrap;
  margin-left: 8px;
}
.user-list-amount.is-big-user {
  color: var(--accent-gold);
}
.user-list-amount.is-loss {
  color: var(--accent-red);
}
.loss-countdown {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
  white-space: nowrap;
}
.user-list-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 600;
}
.tag-big-user {
  background: var(--accent-gold);
  color: #000;
}
.tag-claimed {
  background: var(--accent-green);
  color: #fff;
}