/* Rewards page styles */
.rewards { max-width: 900px; margin: 30px auto; padding: 0 20px; }
.rewards-title { font-size: 1.8rem; margin-bottom: 18px; color: #0d2b2c; }
/* Local button behavior: do not stretch full-width in rewards */
.rewards .btn { width: auto; }

.rewards-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 16px; display: grid; grid-auto-rows: min-content; row-gap: 8px; }
.stat-label { color: #6b7280; font-size: 1.1rem; margin-bottom: 6px; font-weight: 600; }
.stat-value { font-size: 1.4rem; font-weight: 700; color: #155e63; line-height: 1.4; }
.stat-sub { color: #6b7280; font-size: 0.85rem; margin-top: 10px; }
.stat-timer { font-weight: 700; color: #0d2b2c; margin-top: 4px; letter-spacing: 0.5px; }
.stat-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.stat-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; min-height: 40px; }
.stat-row { display: flex; align-items: center; justify-content: flex-start; margin-top: 4px; }
.stat-right { display: flex; justify-content: flex-end; margin-top: 6px; }
.nextdraw-inline { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.stat-sub-inline { color: #6b7280; font-size: 0.9rem; }

.leaderboard { background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 16px; }
.leaderboard-title { font-size: 1.2rem; margin-bottom: 10px; color: #0d2b2c; }
.leaderboard-table { width: 100%; border-collapse: collapse; }
.leaderboard-table th, .leaderboard-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; }
.leaderboard-table thead th { text-align: left; color: #0d2b2c; }
.leaderboard-table .align-right { text-align: right; }
.leaderboard-table tbody tr:hover { background: #f9fafb; }
.leaderboard-table tbody tr.you-row { background: rgba(21,94,99,0.05); font-weight: 600; }

/* Recent activity styled like leaderboard */
.recent-activity { background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 16px; margin-top: 16px; }
.table-footer-center { text-align: center; padding: 12px; }
.activity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #ecfeff;
  color: #0f3d3e;
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 6px;
}

@media (max-width: 640px) {
  .rewards-stats { grid-template-columns: 1fr; }
}

/* Buttons */
.btn { appearance: none; border: none; cursor: pointer; font-weight: 600; border-radius: 6px; padding: 10px 12px; width: 100%; }
.btn, .btn:hover, .btn:focus { text-decoration: none; }
.btn-sm { padding: 6px 10px; font-size: 0.9rem; }
.btn-lg { padding: 14px 20px; font-size: 1.1rem; }
.btn-primary { background: #155e63; color: #fff; }
.btn-primary:hover { background: #0f3d3e; color: #fff; }
.btn-secondary { background: transparent; color: #155e63; border: 1px solid #155e63; }
.btn-secondary:hover { background: #155e63; color: #fff; }

/* Make the inline row keep timer readable and button compact */
.stat-inline .stat-timer { flex: 1 1 auto; margin: 0; }
.stat-inline .btn { flex: 0 0 auto; width: auto; white-space: nowrap; }
.stat-row .btn { width: auto; }

/* Info button + panel */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  margin-left: 6px;
  vertical-align: middle;
  transform: translateY(-1px);
  border-radius: 50%;
  border: 1px solid #155e63;
  color: #155e63;
  background: #fff;
  font-size: 9px; line-height: 1;
  cursor: pointer;
}
.info-btn:hover { background: #f0fdfa; }
.info-panel { margin-top: 10px; background: #f9fafb; border: 1px solid #e5e5e5; border-radius: 8px; padding: 10px; color: #374151; }
/* Quiet link-style action for history */
.link-quiet { display: inline-flex; align-items: center; gap: 6px; color: #155e63; text-decoration: none; border: 0; background: none; padding: 0; font-weight: 600; }
.link-quiet:hover { text-decoration: underline; }
.link-quiet:focus { outline: none; text-decoration: underline; }
.history-detail-link {
  color: #155e63;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.history-detail-link:hover { color: #0f3d3e; text-decoration: underline; }

/* Success hero panel */
.success-container { background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 24px; margin-top: 16px; text-align: center; }
.success-headline { font-size: 2.2rem; margin: 0 0 10px 0; color: #0d2b2c; font-weight: 800; }
.success-sub { color: #374151; margin: 0 0 14px 0; font-size: 1.05rem; }
.success-brand img { max-height: 52px; border-radius: 6px; background: #fff; padding: 4px; border: 1px solid #e5e5e5; }
.success-primary { margin: 12px auto 6px; display: inline-flex; }
.success-secondary { display: flex; justify-content: center; gap: 14px; margin-top: 10px; }
.success-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #e6fffa; border: 1px solid #a7f3d0; margin: 0 auto 10px; }
.success-icon svg { width: 32px; height: 32px; }

/* Confetti overlay */
.confetti-wrap { position: relative; }
.confetti-canvas { position: absolute; inset: -10px; pointer-events: none; z-index: 1; }

/* Accents */
.accent-amount { color: #155e63; font-weight: 800; }
.accent-brand { color: #0d2b2c; font-weight: 700; }
