/* ================================================
   MEGA AIRDROP MARATHON - STYLES
   reward.css
   ================================================ */

/* ========== BOUTON TROPHY ========== */
/*------reward-------*/
.login-page .reward-trophy-btn.fixed-position {
  display: none;
}

.trophy-btn-container {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.reward-trophy-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4px 15px rgba(255, 215, 0, 0.4),
    0 0 20px rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
  overflow: visible;
}

.reward-trophy-btn:hover {
  transform: scale(1.1);
  box-shadow: 
    0 6px 25px rgba(255, 215, 0, 0.6),
    0 0 30px rgba(255, 215, 0, 0.4);
}

.reward-trophy-btn i {
  font-size: 20px;
  color: #1a1a2e;
  z-index: 2;
}

/* Animation pulse autour du bouton */
.trophy-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.4);
  animation: trophyPulse 2s ease-out infinite;
}

@keyframes trophyPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}



/* ========== POPUP OVERLAY ========== */
.reward-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
    background: rgba(0, 0, 0, 0.92);
  /* backdrop-filter: blur(10px); */
  /* -webkit-backdrop-filter: blur(10px); */
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.reward-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.reward-popup-open {
  overflow: hidden;
}
/* Stopper le pulse quand le popup est ouvert */
body.reward-popup-open .trophy-pulse {
  animation: none;
}

/* ========== POPUP CONTAINER ========== */
.reward-popup {
  background: linear-gradient(180deg, #1a1a2e 0%, #16162a 100%);
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(255, 215, 0, 0.1);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.reward-popup-overlay.active .reward-popup {
  transform: scale(1);
}

/* ========== HEADER ========== */
.reward-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 140, 0, 0.1) 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.reward-header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.reward-trophy-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.reward-trophy-icon i {
  font-size: 28px;
  color: #1a1a2e;
}

.reward-header-text h1 {
  font-size: 24px;
  font-weight: 700;
  color: #FFD700;
  margin: 0 0 5px 0;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.reward-subtitle {
  font-size: 14px;
  color: #a0a0b0;
  margin: 0;
}

.reward-popup-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.reward-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.reward-popup-close i {
  font-size: 20px;
  color: #fff;
}

/* ========== COUNTDOWN SECTION ========== */
.reward-countdown-section {
  padding: 20px 30px;
  background: rgba(139, 92, 246, 0.1);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  text-align: center;
}

.countdown-label {
  font-size: 14px;
  color: #a0a0b0;
  margin: 0 0 15px 0;
}

.reward-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown-value2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  background: rgba(139, 92, 246, 0.2);
  padding: 10px 15px;
  border-radius: 10px;
  min-width: 60px;
  text-align: center;
}

.countdown-unit {
  font-size: 11px;
  color: #8B5CF6;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-separator {
  font-size: 28px;
  color: #8B5CF6;
  font-weight: 700;
  margin-top: -20px;
}

/* ========== TABS ========== */
.reward-tabs {
  display: flex;
  padding: 0 30px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reward-tab {
  flex: 1;
  padding: 15px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.reward-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.reward-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.reward-tab.active {
  color: #FFD700;
}

.reward-tab.active::after {
  background: linear-gradient(90deg, #FFD700, #FF8C00);
}

.reward-tab i {
  font-size: 16px;
}

/* ========== CONTENT ========== */
.reward-popup-content {
  flex: 1;
  padding: 25px 30px;
}

.reward-tab-content {
  display: none;
}

.reward-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== INTRO ========== */
.reward-intro {
  text-align: center;
  margin-bottom: 25px;
}

.reward-intro p {
  color: #e0e0e0;
  font-size: 16px;
  margin: 0 0 10px 0;
}

.reward-info-small {
  font-size: 13px !important;
  color: #8b8b9b !important;
}

/* ========== REWARDS SUMMARY ========== */
.rewards-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.reward-prize {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.reward-prize:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.prize-rank {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
  color:white;
}

.prize-amount {
  display: block;
  font-size: 12px;
  color: #FFD700;
  font-weight: 600;
}

.prize-usd {
  font-size: 0.75rem;
  color: #10b981;
  opacity: 0.9;
  display: block;
  margin-top: 2px;
}

.nora-token {
  width: 25px;
}

/* ========== RANKING LIST ========== */
.ranking-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reward-ranking-item {
  display: grid;
  grid-template-columns: 60px 1fr 160px 160px;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.reward-ranking-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(5px);
}

/* Top 3 special styles */
.reward-ranking-item.top-1 {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
  border-color: rgba(255, 215, 0, 0.3);
}

.reward-ranking-item.top-2 {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.05) 100%);
  border-color: rgba(192, 192, 192, 0.3);
}

.reward-ranking-item.top-3 {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.05) 100%);
  border-color: rgba(205, 127, 50, 0.3);
}

.rank-position {
  text-align: center;
}

.rank-medal {
  font-size: 28px;
}

.rank-number {
  font-size: 18px;
  font-weight: 700;
  color: #6b7280;
}

.rank-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.rank-user-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 3px 0;
}

.rank-handle {
  font-size: 13px;
  color: #8b8b9b;
}

.rank-votes {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.rank-votes i {
  color: #10B981;
  font-size: 14px;
}

.rank-votes span {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* ========== RANK REWARD WITH USD ========== */
.rank-reward {
  text-align: right;
}

.reward-amounts {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.reward-usd {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.reward-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--reward-color, #FFD700);
  align-items: center;
  display: flex;
  gap: 10px;
}

.reward-token {
  font-size: 11px;
  color: #8b8b9b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ========== THIS WEEK'S WINNERS (FEATURED) ========== */
.this-week-winners {
  margin-bottom: 30px;
}

.no-winners-yet {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: 16px;
  border: 1px dashed rgba(139, 92, 246, 0.3);
}

.no-winners-yet i {
  font-size: 48px;
  color: #8B5CF6;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.no-winners-yet p {
  margin: 0;
  color: #c0c0d0;
  font-size: 16px;
}

.no-winners-yet .hint {
  font-size: 13px;
  color: #8b8b9b;
  margin-top: 8px;
}

.this-week-section {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.05) 100%);
  border-radius: 20px;
  padding: 25px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.1);
}

.this-week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.this-week-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.this-week-title i {
  font-size: 28px;
  color: #FFD700;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.this-week-title h3 {
  font-size: 22px;
  color: #FFD700;
  margin: 0;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.this-week-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.week-date {
  font-size: 14px;
  color: #a0a0b0;
}

.week-badge {
  font-size: 12px;
  color: #8B5CF6;
  background: rgba(139, 92, 246, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
}

.all-sent-badge {
  font-size: 12px;
  color: #10B981;
  background: rgba(16, 185, 129, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pending-badge {
  font-size: 12px;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: revert;
}

/* Podium */
.this-week-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.podium-item {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 20px 15px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.podium-item.gold {
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
  border-color: rgba(255, 215, 0, 0.4);
  order: 2;
}

.podium-item.silver {
  background: linear-gradient(180deg, rgba(192, 192, 192, 0.15) 0%, rgba(0, 0, 0, 0.3) 100%);
  border-color: rgba(192, 192, 192, 0.3);
  order: 1;
  margin-top: 20px;
}

.podium-item.bronze {
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.15) 0%, rgba(0, 0, 0, 0.3) 100%);
  border-color: rgba(205, 127, 50, 0.3);
  order: 3;
  margin-top: 20px;
}

.podium-item:hover {
  transform: translateY(-5px);
}

.podium-medal {
  font-size: 36px;
  margin-bottom: 10px;
}

.podium-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
}

.podium-item.gold .podium-avatar {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.podium-info {
  margin-bottom: 12px;
}

.podium-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}

.podium-handle {
  display: block;
  font-size: 13px;
  color: #8b8b9b;
}

.podium-reward {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.podium-reward .reward-value {
  font-size: 20px;
  font-weight: 700;
  color: #FFD700;
}

.podium-reward .reward-token {
  font-size: 12px;
  color: #a0a0b0;
}

.podium-reward .sent-icon {
  color: #10B981;
  font-size: 14px;
}

.podium-votes {
  font-size: 12px;
  color: #6b7280;
}

.podium-votes i {
  color: #10B981;
}

/* Other Winners (4-15) */
.this-week-others {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 15px;
}

.others-title {
  font-size: 14px;
  color: #a0a0b0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.others-title i {
  color: #8B5CF6;
}

.others-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.other-winner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.other-winner:hover {
  background: rgba(255, 255, 255, 0.06);
}

.other-winner.sent {
  opacity: 0.8;
}

.other-rank {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  min-width: 30px;
}

.other-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.other-name {
  flex: 1;
  font-size: 13px;
  color: #e0e0e0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.other-reward {
  font-size: 12px;
  color: #FFD700;
  font-weight: 600;
}

.sent-check {
  color: #10B981;
  font-size: 12px;
}

/* History Section Title */
.history-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-section-title i {
  font-size: 20px;
  color: #8B5CF6;
}

.history-section-title h3 {
  font-size: 18px;
  color: #a0a0b0;
  margin: 0;
}

/* ========== HISTORY ========== */
.history-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.empty-history {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.empty-history i {
  font-size: 48px;
  margin-bottom: 20px;
  color: #4b5563;
}

.empty-history h3 {
  font-size: 20px;
  color: #9ca3af;
  margin: 0 0 10px 0;
}

.empty-history p {
  margin: 0 0 10px 0;
}

.history-note {
  font-size: 13px;
  color: #6b7280;
}

.history-week {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.history-week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: rgba(139, 92, 246, 0.1);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.history-week-header h3 {
  font-size: 16px;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-week-header i {
  color: #8B5CF6;
}

.week-label {
  font-size: 12px;
  color: #8B5CF6;
  background: rgba(139, 92, 246, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
}

.history-winners {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-winner {
  display: grid;
  grid-template-columns: 40px 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.history-winner.top-1 { background: rgba(255, 215, 0, 0.1); }
.history-winner.top-2 { background: rgba(192, 192, 192, 0.1); }
.history-winner.top-3 { background: rgba(205, 127, 50, 0.1); }

.history-rank {
  font-size: 16px;
  text-align: center;
}

.history-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.history-info {
  display: flex;
  flex-direction: column;
}

.history-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.history-handle {
  font-size: 12px;
  color: #8b8b9b;
}

.history-reward {
  font-size: 14px;
  font-weight: 600;
  color: #FFD700;
}

.show-more-winners {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #8b8b9b;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.show-more-winners:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* More winners container */
.more-winners-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Reward info with sent badge */
.history-reward-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reward-sent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #10B981;
  border-radius: 50%;
  font-size: 10px;
  color: #fff;
}

/* ========== RULES ========== */
.rules-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.rule-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rule-section h3 {
  font-size: 16px;
  color: #FFD700;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rule-section h3 i {
  font-size: 18px;
}

.rule-section p {
  color: #c0c0d0;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.rule-section ul,
.rule-section ol {
  margin: 0;
  padding-left: 20px;
  color: #c0c0d0;
}

.rule-section li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.total-weekly {
  margin-top: 15px !important;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #10B981 !important;
}

/* ========== FOOTER ========== */
.reward-popup-footer {
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.reward-popup-footer p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.reward-popup-footer strong {
  color: #8B5CF6;
}

/* ========== LOADERS & EMPTY STATES ========== */
.ranking-list-container .loader-container,
.ranking-list-container .error-message,
.ranking-list-container .empty-ranking {
  padding: 40px 20px;
  text-align: center;
}

.ranking-list-container .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 215, 0, 0.2);
  border-top-color: #FFD700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .reward-popup {
    max-height: 95vh;
    border-radius: 15px;
  }
  
  .reward-popup-header {
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .reward-header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .reward-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
  }
  
  .reward-header-text h1 {
    font-size: 20px;
  }
  
  .countdown-value {
    font-size: 24px;
    padding: 8px 12px;
    min-width: 50px;
  }
  
  .countdown-separator {
    font-size: 20px;
  }
  
  .reward-tabs {
    padding: 0 10px;
  }
  
  .reward-tab {
    padding: 12px 10px;
    font-size: 12px;
  }
  
  .reward-tab span {
    display: none;
  }
  
  .reward-tab i {
    font-size: 18px;
  }
  
  .rewards-summary {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .reward-ranking-item {
    grid-template-columns: 50px 1fr;
    gap: 10px;
    padding: 12px 15px;
  }
  
  .rank-votes,
  .rank-reward {
    display: none;
  }
  
  .rank-user-info h4 {
    font-size: 14px;
  }
  
  .rank-avatar {
    width: 38px;
    height: 38px;
  }
  
  .reward-popup-content {
    padding: 20px 15px;
  }
  
  .history-winner {
    grid-template-columns: 35px 35px 1fr auto;
    gap: 10px;
    padding: 8px;
  }
  
  .history-avatar {
    width: 35px;
    height: 35px;
  }
  
  /* This Week responsive */
  .this-week-section {
    padding: 20px 15px;
  }
  
  .this-week-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .this-week-title h3 {
    font-size: 18px;
  }
  
  .this-week-podium {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .podium-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    text-align: left;
  }
  
  .podium-item.gold,
  .podium-item.silver,
  .podium-item.bronze {
    order: unset;
    margin-top: 0;
  }
  
  .podium-medal {
    font-size: 28px;
    margin-bottom: 0;
  }
  
  .podium-avatar {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
  }
  
  .podium-info {
    flex: 1;
    margin-bottom: 0;
  }
  
  .podium-reward {
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 0;
  }
  
  .podium-votes {
    display: none;
  }
  
  .others-list {
    grid-template-columns: 1fr;
  }
  
  body > .reward-trophy-btn:not(.fixed-position) {
    position: fixed;
    bottom: 75px;
    right: 10px;
    z-index: 100;
    width: 50px;
    height: 50px;
  }
}


@media (max-width: 480px) {
  .reward-popup-overlay {
    padding: 10px;
  }
  
  .countdown-block {
    min-width: 45px;
  }
  
  .countdown-value {
    font-size: 20px;
    padding: 6px 10px;
  }
  
  .rewards-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== SCROLLBAR CUSTOM ========== */
.reward-popup-content::-webkit-scrollbar {
  width: 8px;
}

.reward-popup-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.reward-popup-content::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: 4px;
}

.reward-popup-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.5);
}


/* ================================================
   MEGA AIRDROP MARATHON - DANGER ZONE STYLES
   Ajouter ce CSS à la fin de reward.css
   ================================================ */

/* ========== DANGER ZONE - COUNTDOWN ROUGE ========== */
.reward-countdown-section.danger-zone {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.15) 100%);
  border-bottom: 1px solid rgba(239, 68, 68, 0.4);
  animation: dangerPulse 2s ease-in-out infinite;
}

@keyframes dangerPulse {
  0%, 100% {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.15) 100%);
    box-shadow: inset 0 0 30px rgba(239, 68, 68, 0.1);
  }
  50% {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(185, 28, 28, 0.25) 100%);
    box-shadow: inset 0 0 50px rgba(239, 68, 68, 0.2);
  }
}

.reward-countdown-section.danger-zone .countdown-label {
  color: #EF4444;
  font-weight: 600;
  animation: textFlash 1s ease-in-out infinite;
}

@keyframes textFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.reward-countdown-section.danger-zone .countdown-value2 {
  background: rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.5);
  animation: valueGlow 1.5s ease-in-out infinite;
}

@keyframes valueGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
  }
}

.reward-countdown-section.danger-zone .countdown-unit {
  color: #EF4444;
}

.reward-countdown-section.danger-zone .countdown-separator {
  color: #EF4444;
  animation: separatorBlink 0.5s ease-in-out infinite;
}

@keyframes separatorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ========== DANGER ZONE ALERT MESSAGE ========== */
.danger-zone-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.2) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 10px;
  animation: alertSlide 0.5s ease-out, alertPulse 2s ease-in-out infinite;
}

@keyframes alertSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes alertPulse {
  0%, 100% {
    border-color: rgba(239, 68, 68, 0.4);
  }
  50% {
    border-color: rgba(239, 68, 68, 0.8);
  }
}

.danger-zone-alert i {
  color: #EF4444;
  font-size: 18px;
  animation: boltFlash 0.8s ease-in-out infinite;
}

@keyframes boltFlash {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.danger-zone-alert span {
  color: #FCA5A5;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== WINNERS SELECTED MESSAGE ========== */
.reward-countdown-section.winners-done {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}

.reward-countdown-section.winners-done .countdown-label {
  color: #10B981;
  font-weight: 600;
}

.winners-selected-message {
  text-align: center;
  padding: 20px;
  animation: winnersAppear 0.6s ease-out;
}

@keyframes winnersAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.winners-selected-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: crownBounce 1s ease-in-out infinite;
  box-shadow: 
    0 0 30px rgba(255, 215, 0, 0.4),
    0 0 60px rgba(255, 215, 0, 0.2);
}

@keyframes crownBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-5px) rotate(-3deg);
  }
  75% {
    transform: translateY(-5px) rotate(3deg);
  }
}

.winners-selected-icon i {
  font-size: 36px;
  color: #1a1a2e;
}

.winners-selected-message h2 {
  font-size: 24px;
  color: #FFD700;
  margin: 0 0 10px 0;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.winners-selected-message p {
  font-size: 14px;
  color: #a0a0b0;
  margin: 0;
}

/* ========== CONFETTI EFFECT (optionnel) ========== */
.winners-selected-message::before,
.winners-selected-message::after {
  content: '🎊';
  position: absolute;
  font-size: 30px;
  animation: confettiFall 2s ease-in-out infinite;
}

.winners-selected-message::before {
  left: 20%;
  animation-delay: 0s;
}

.winners-selected-message::after {
  right: 20%;
  animation-delay: 0.5s;
}

@keyframes confettiFall {
  0%, 100% {
    opacity: 0;
    transform: translateY(-20px) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translateY(10px) rotate(180deg);
  }
}

/* ========== BOUTON TROPHY DANGER MODE ========== */
.reward-countdown-section.danger-zone ~ .reward-trophy-btn,
body.danger-zone-active .reward-trophy-btn {
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  animation: trophyDanger 1s ease-in-out infinite;
}

@keyframes trophyDanger {
  0%, 100% {
    box-shadow: 
      0 4px 15px rgba(239, 68, 68, 0.4),
      0 0 20px rgba(239, 68, 68, 0.2);
  }
  50% {
    box-shadow: 
      0 4px 25px rgba(239, 68, 68, 0.6),
      0 0 40px rgba(239, 68, 68, 0.4);
  }
}

/* ========== RESPONSIVE DANGER ZONE ========== */
@media (max-width: 768px) {
  .danger-zone-alert {
    flex-direction: column;
    gap: 8px;
    padding: 10px 15px;
  }
  
  .danger-zone-alert span {
    font-size: 11px;
    text-align: center;
  }
  
  .winners-selected-message h2 {
    font-size: 20px;
  }
  
  .winners-selected-icon {
    width: 60px;
    height: 60px;
  }
  
  .winners-selected-icon i {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .danger-zone-alert span {
    font-size: 10px;
  }
  
  .countdown-value2 {
    font-size: 24px !important;
  }
}