/* =========================
   Achievements
   ========================= */

.achievements-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.achievement-row{
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  overflow: hidden;
}

.achievement-main{
  display: grid;
  grid-template-columns: 70px 1fr 170px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.achievement-left{
  display:flex;
  justify-content:center;
  align-items:center;
}

.achievement-icon{
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
}

.achievement-name{
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 4px;
}

.achievement-desc{
  opacity: .85;
  line-height: 1.25;
}

.achievement-right{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap: 10px;
}

.achievement-stages{
  opacity:.85;
  font-weight: 800;
  white-space: nowrap;
}

.achievement-toggle{
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 900;
}

.achievement-toggle:hover{
  filter: brightness(1.08);
}

.achievement-details{
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.20);
}

.achievement-details.hidden{
  display:none;
}

.achievement-details-inner{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.achievement-stage{
  display:grid;
  grid-template-columns: 44px 1fr 1fr;
  gap: 12px;
  align-items:center;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.08);
}

.stage-icon{
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.stage-condition{
  padding-left: 50px;
  opacity: .95;
  font-weight: 1000;
  color: #4caf50;
  text-shadow:
    -1px -1px 0 #1b5e20,
     1px -1px 0 #1b5e20,
    -1px  1px 0 #1b5e20,
     1px  1px 0 #1b5e20;
}

.stage-reward{
  opacity: .9;
  text-align: right;
  font-weight: 800;
}

.achievement-tip{
  display: inline-block;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(242,211,107,.10);
  border: 1px solid rgba(242,211,107,.45);
  opacity: .95;
  transition: transform 0.2s ease-in-out;
}

.achievement-tip:hover{
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(242,211,107,.35);
}

/* Achievement reward colors */
.reward-xp{
  color: #4da3ff; /* blue */
  font-weight: 600;
}

.reward-cash{
  color: #4caf50; /* green */
  font-weight: 600;
}

.reward-gold{
  color: #f5c542; /* gold/yellow */
  font-weight: 600;
}

.reward-magic{
  color: #b26bff; /* purple */
  font-weight: 600;
}

.reward-gold,
.reward-magic{
  text-shadow: 0 0 6px rgba(255,255,255,0.45);
}

/* --- Bottom row: Tip + Total --- */
.achievement-bottom{
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
}

.achievement-tip,
.achievement-total{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(242,211,107,.30);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: .95;
}

/* Tip: left, a bit wider */
.achievement-tip{
  flex: 1.35;
  text-align: left;
  border-color: rgba(242,211,107,.35);
  background: rgba(242,211,107,.10);
}

/* Total: right, same style but different color */
.achievement-total{
  flex: 1;
  border-color: rgba(100,180,255,.35);
  background: rgba(40, 90, 140, .22);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 320px;
}

.achievement-total:hover{
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(100,180,255,.35);
}

.achievement-total-title{
  font-weight: 900;
  margin-bottom: 4px;
  opacity: .95;
}

.achievement-total-values{
  font-weight: 800;
  white-space: nowrap;
}

.achievement-total-values .sep{
  opacity: .6;
  padding: 0 6px;
}

/* --- Grand total at the very bottom --- */
.achievement-grand-total{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-color: rgba(255, 100, 100, 0.35);
  background: rgba(140, 40, 40, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.achievement-grand-total-title{
  font-weight: 900;
  margin-bottom: 6px;
  opacity: .95;
}

.achievement-grand-total-values{
  font-weight: 900;
  white-space: nowrap;
}

.achievement-grand-total-values .sep{
  opacity: .6;
  padding: 0 6px;
}