/* Tsiky paliers page (T95) — design progression-game-like. */

.paliers-hero {
  background: linear-gradient(135deg, #FFF4E0 0%, #FFE7C7 100%);
  border-radius: 18px;
  padding: 22px 20px;
  margin-bottom: 18px;
  text-align: center;
  font-family: Nunito, sans-serif;
  color: #6E3F00;
}
.paliers-hero-balance {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}
.paliers-hero-balance .fa-coins {
  color: #F5B027;
  font-size: 40px;
  filter: drop-shadow(0 3px 5px rgba(245,176,39,.5));
}
.paliers-hero-balance span {
  font-size: 44px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1px;
}
.paliers-hero-balance small {
  font-size: 12px;
  color: #8B6800;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.paliers-hero-current {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 12px;
}
.paliers-hero-progress { text-align: left; }
.paliers-hero-progress-label {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-weight: 700;
}
.paliers-hero-progress-bar {
  height: 10px;
  background: rgba(28,28,46,.08);
  border-radius: 5px;
  overflow: hidden;
}
.paliers-hero-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F5B027 0%, #FF8C00 100%);
  border-radius: 5px;
  transition: width .5s ease;
}
.paliers-hero-progress-remaining {
  font-size: 11.5px;
  color: #8B6800;
  text-align: right;
  margin-top: 4px;
  font-weight: 700;
}

.paliers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.palier-card {
  background: var(--card-bg);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card, 0 2px 6px rgba(0,0,0,.04));
  font-family: Nunito, sans-serif;
  position: relative;
  border: 1.5px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease;
}
.palier-card.unlocked {
  border-color: rgba(16,185,129,.4);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(16,185,129,.10) 100%);
}
.palier-card.locked { opacity: .85; }
.palier-card.locked .palier-ic { filter: grayscale(.7); opacity: .55; }

.palier-ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex: 0 0 52px;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.palier-info { flex: 1; min-width: 0; }
.palier-name {
  font-weight: 900;
  font-size: 16px;
  color: var(--text);
  line-height: 1.2;
}
.palier-threshold {
  font-size: 12px;
  color: #6B6B7A;
  font-weight: 700;
  margin-top: 1px;
}
.palier-threshold .fa-coins { color: #F5B027; font-size: 11px; }
.palier-perks {
  margin-top: 6px;
  font-size: 12.5px;
  color: #3C3C4E;
  font-weight: 600;
  line-height: 1.4;
}
.palier-perks li {
  list-style: none;
  position: relative;
  padding-left: 14px;
}
.palier-perks li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #F5B027;
  font-weight: 900;
}

.palier-status {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 18px;
}
.palier-status.unlocked-ic { color: #10B981; }
.palier-status.locked-ic { color: #B0B0BD; }

/* Unlock toast (T97) */
.palier-unlock-overlay {
  position: fixed;
  inset: 0;
  z-index: 99995;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: background .3s ease;
}
.palier-unlock-overlay.show { background: rgba(0,0,0,.65); }
.palier-unlock-card {
  background: linear-gradient(135deg, #FFF4E0 0%, #FFE7C7 100%);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  font-family: Nunito, sans-serif;
  transform: scale(.85);
  opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
  box-shadow: 0 16px 50px rgba(0,0,0,.4);
}
.palier-unlock-overlay.show .palier-unlock-card {
  transform: scale(1);
  opacity: 1;
}
.palier-unlock-card .palier-unlock-ic {
  font-size: 64px;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(245,176,39,.4));
}
.palier-unlock-card h2 {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 6px;
}
.palier-unlock-card .palier-unlock-sub {
  font-size: 14px;
  color: #6E3F00;
  margin-bottom: 16px;
  font-weight: 700;
}
.palier-unlock-card .palier-unlock-perks {
  background: rgba(255,255,255,.7);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  font-weight: 600;
  margin-bottom: 16px;
}
.palier-unlock-card .palier-unlock-perks ul { list-style: none; padding: 0; margin: 0; }
.palier-unlock-card .palier-unlock-perks li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 4px;
  line-height: 1.35;
}
.palier-unlock-card .palier-unlock-perks li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: #F5B027;
}
.palier-unlock-card button {
  appearance: none;
  border: none;
  background: #1C1C2E;
  color: #fff;
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 12px;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .palier-card { background: #1C1C2E; color: #fff; border-color: rgba(255,255,255,.08); }
  .palier-card.unlocked { background: linear-gradient(135deg, #1C1C2E 0%, #0F2A1C 100%); }
  .palier-name { color: #fff; }
  .palier-threshold, .palier-perks { color: rgba(255,255,255,.7); }
  .paliers-hero { background: linear-gradient(135deg, #3A2A0E 0%, #4A3A1C 100%); color: #FFE7C7; }
  .paliers-hero-balance span, .paliers-hero-current { color: #fff; }
}

/* Home widget Missions (T96) */
.home-missions-tile {
  background: linear-gradient(135deg, #FFF8EC 0%, #FFF4E0 100%);
  border-radius: 16px;
  padding: 14px 16px;
  font-family: Nunito, sans-serif;
}
.home-missions-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.home-missions-tile-head h3 {
  font-size: 13px;
  font-weight: 900;
  color: #6E3F00;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.home-missions-tile-head h3 .fa-bullseye { color: #F5B027; }
.home-mission-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,.7);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 13px;
}
.home-mission-row .home-mission-ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #F5B027;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex: 0 0 28px;
}
.home-mission-row .home-mission-text {
  flex: 1;
  min-width: 0;
}
.home-mission-row .home-mission-label {
  font-weight: 700;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-mission-row .home-mission-progress {
  font-size: 11px;
  color: #8B6800;
  font-weight: 700;
  margin-top: 1px;
}
.home-mission-row .home-mission-reward {
  font-weight: 900;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.home-mission-row .home-mission-reward .fa-coins { color: #F5B027; }
.home-mission-row .home-mission-claim {
  appearance: none;
  border: none;
  background: #10B981;
  color: #fff;
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.home-mission-row.claimed { opacity: .55; }
.home-mission-row.claimed .home-mission-reward { color: #10B981; }
