/* ─── Reward Toast ─── */
.rewardToast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(74, 48, 32, 0.95));
  border: 1px solid rgba(240, 192, 64, 0.4);
  border-radius: 12px;
  padding: 12px 24px;
  color: #F5F0E0;
  font-family: Cairo, system-ui;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastIn 320ms ease-out;
  pointer-events: none;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ═══════════ DAILY REWARD ═══════════ */

.dailyRewardGrid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--wood-brown) transparent;
}

.dailyRewardGrid::-webkit-scrollbar { height: 4px; }
.dailyRewardGrid::-webkit-scrollbar-track { background: transparent; }
.dailyRewardGrid::-webkit-scrollbar-thumb { background: var(--wood-brown); border-radius: 2px; }

.rewardDayCell {
  flex: 1;
  min-width: 72px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px 8px 10px;
  text-align: center;
  transition: all 250ms ease;
  position: relative;
}

.rewardDayCell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 250ms ease;
}

.rewardDayCell.rewardToday {
  border-color: rgba(240, 192, 64, 0.6);
  background: linear-gradient(180deg, rgba(240, 192, 64, 0.12), rgba(240, 192, 64, 0.04));
  box-shadow: 0 0 20px rgba(240, 192, 64, 0.15), inset 0 1px 0 rgba(240, 192, 64, 0.15);
  animation: todayPulse 2s ease-in-out infinite;
}

@keyframes todayPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(240, 192, 64, 0.15), inset 0 1px 0 rgba(240, 192, 64, 0.15); }
  50% { box-shadow: 0 0 30px rgba(240, 192, 64, 0.25), inset 0 1px 0 rgba(240, 192, 64, 0.2); }
}

.rewardDayCell.rewardClaimed {
  border-color: rgba(107, 191, 89, 0.3);
  background: linear-gradient(180deg, rgba(107, 191, 89, 0.08), rgba(107, 191, 89, 0.03));
  opacity: 0.6;
}

.rewardDayCell.rewardClaimed::after {
  content: '✓';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #6BBF59;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(107, 191, 89, 0.4);
}

.rewardDayLabel {
  font-size: 11px;
  font-weight: 800;
  color: rgba(245, 240, 224, 0.45);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rewardDayCell.rewardToday .rewardDayLabel {
  color: rgba(240, 192, 64, 0.7);
}

.rewardDayIcon {
  font-size: 26px;
  line-height: 1;
  position: relative;
  display: inline-block;
}

.rewardDayQty {
  position: absolute;
  top: -8px;
  right: -16px;
  font-size: 10px;
  font-weight: 800;
  color: #F0C040;
  background: rgba(44, 24, 16, 0.95);
  padding: 1px 5px;
  border-radius: 6px;
  border: 1px solid rgba(240, 192, 64, 0.3);
}

/* Streak */
.dailyStreakWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(240, 192, 64, 0.08), rgba(240, 192, 64, 0.03));
  border: 1px solid rgba(240, 192, 64, 0.12);
  border-radius: 12px;
}

.dailyStreakLabel {
  font-size: 12px;
  font-weight: 700;
  color: rgba(245, 240, 224, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dailyStreakCount {
  font-size: 22px;
  font-weight: 900;
  color: #F0C040;
  line-height: 1;
}

/* Claim Button */
.dailyClaimBtn {
  width: 100%;
  padding: 14px;
  margin-top: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #6BBF59, #4A8B3C);
  color: #F5F0E0;
  font-family: Cairo, system-ui;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  transition: all 150ms ease;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(74, 139, 60, 0.3);
}

.dailyClaimBtn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(74, 139, 60, 0.4);
  filter: brightness(1.08);
}

.dailyClaimBtn:active:not(:disabled) {
  transform: scale(0.97);
}

.dailyClaimBtn:disabled {
  background: rgba(255,255,255,0.06);
  color: rgba(245,240,224,0.3);
  cursor: default;
  box-shadow: none;
}

.dailyClaimBtn:not(:disabled) {
  animation: claimGlow 2s ease-in-out infinite;
}

@keyframes claimGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(74, 139, 60, 0.3); }
  50% { box-shadow: 0 4px 24px rgba(74, 139, 60, 0.5); }
}

/* ═══════════ MISSIONS ═══════════ */
.missionsList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.missionRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: all 200ms ease;
}

.missionRow:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border-color: rgba(255,255,255,0.1);
}

.missionRow.missionClaimed {
  opacity: 0.45;
}

.missionDesc {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: #F5F0E0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.missionBarWrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 140px;
}

.missionBar {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.missionBarFill {
  height: 100%;
  background: linear-gradient(90deg, #4A8B3C, #6BBF59);
  border-radius: 5px;
  transition: width 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 8px rgba(107, 191, 89, 0.3);
}

.missionLabel {
  font-size: 12px;
  font-weight: 700;
  color: rgba(245, 240, 224, 0.4);
  white-space: nowrap;
  min-width: 48px;
  text-align: right;
}

.missionClaimBtn {
  padding: 8px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #F0C040, #D4A843);
  color: #2C1810;
  font-family: Cairo, system-ui;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 120ms ease;
  box-shadow: 0 2px 8px rgba(240, 192, 64, 0.3);
  flex-shrink: 0;
}

.missionClaimBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(240, 192, 64, 0.4);
}

.missionClaimBtn:active {
  transform: scale(0.95);
}

.missionDone {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(107, 191, 89, 0.2), rgba(107, 191, 89, 0.1));
  border: 2px solid #6BBF59;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
  color: #6BBF59;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(107, 191, 89, 0.15);
}

/* ═══════════ LUCKY WHEEL ═══════════ */
.wheelWrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}

.wheelCanvasWrap {
  position: relative;
  width: 280px;
  height: 280px;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.4));
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.wheelPointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 28px solid #F0C040;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5));
}

.wheelPointer::after {
  content: '';
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #F0C040;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(240, 192, 64, 0.5);
}

.wheelSpinBtn {
  width: 220px;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #F0C040, #D4A843);
  color: #2C1810;
  font-family: Cairo, system-ui;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 150ms ease;
  box-shadow: 0 4px 20px rgba(240, 192, 64, 0.3);
}

.wheelSpinBtn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(240, 192, 64, 0.4);
  filter: brightness(1.08);
}

.wheelSpinBtn:active:not(:disabled) {
  transform: scale(0.96);
}

.wheelSpinBtn:disabled {
  background: rgba(255,255,255,0.06);
  color: rgba(245,240,224,0.3);
  cursor: default;
  box-shadow: none;
}

.wheelSpinBtn:not(:disabled) {
  animation: spinBtnPulse 2s ease-in-out infinite;
}

@keyframes spinBtnPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(240, 192, 64, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(240, 192, 64, 0.5); }
}

/* ═══════════ DAILY SHOP ═══════════ */
.dailyShopList {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.shopDailyCard {
  position: relative;
  flex: 1;
  min-width: 130px;
  max-width: 160px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px 12px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 200ms ease;
}

.shopDailyCard:hover {
  border-color: rgba(240, 192, 64, 0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}

.shopDailyCard.soldOut {
  opacity: 0.4;
}

.shopDailyBadge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #E05050;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(224, 80, 80, 0.3);
}

.shopDailyIcon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 2px;
}

.shopDailyName {
  font-size: 14px;
  font-weight: 800;
  color: #F5F0E0;
}

.shopDailyQty {
  font-size: 12px;
  font-weight: 700;
  color: rgba(245, 240, 224, 0.5);
}

.shopDailyPrice {
  font-size: 16px;
  font-weight: 900;
  color: #F0C040;
  margin-top: 2px;
}

.shopDailyOldPrice {
  text-decoration: line-through;
  color: rgba(245, 240, 224, 0.25);
  font-weight: 600;
  font-size: 12px;
  margin-right: 4px;
}

.shopDailyBuyBtn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6BBF59, #4A8B3C);
  color: #F5F0E0;
  font-family: Cairo, system-ui;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
  transition: all 120ms ease;
  box-shadow: 0 2px 8px rgba(74, 139, 60, 0.2);
}

.shopDailyBuyBtn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74, 139, 60, 0.3);
}

.shopDailyBuyBtn:active {
  transform: scale(0.96);
}

.shopDailySold {
  font-size: 12px;
  font-weight: 700;
  color: rgba(245, 240, 224, 0.25);
  margin-top: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
