/* PERKS SİSTEMİ — character sayfası */
.ch-perks-wrap {
  --ch-perk-accent: #ee5519;
  --ch-perk-gold: #fbbf24;
  --ch-perk-text: #f0f0f0;
  --ch-perk-muted: #9ca3af;
  font-family: 'Oxanium', system-ui, sans-serif;
  color: var(--ch-perk-text);
}

.ch-perks-wrap .ch-perks-empty {
  margin: 0;
  font-size: 12px;
  color: var(--ch-perk-muted);
}

.ch-perks-wrap .ch-perks-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.ch-perks-wrap .ch-perks-stat {
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}

.ch-perks-wrap .ch-perks-stat--accent {
  border-color: rgba(238, 85, 25, 0.35);
  background: linear-gradient(145deg, rgba(238, 85, 25, 0.12), rgba(0, 0, 0, 0.25));
}

.ch-perks-wrap .ch-perks-stat__label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.ch-perks-wrap .ch-perks-stat__val {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--ch-perk-gold);
  line-height: 1.1;
}

.ch-perks-wrap .ch-perks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 85, 25, 0.4) transparent;
}

.ch-perks-wrap .ch-perk-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px 12px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  margin: 0;
}

.ch-perks-wrap .ch-perk-row:hover {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.12);
}

.ch-perks-wrap .ch-perk-row.is-active {
  border-color: rgba(238, 85, 25, 0.32);
  background: linear-gradient(100deg, rgba(238, 85, 25, 0.1), rgba(0, 0, 0, 0.28) 55%);
}

.ch-perks-wrap .ch-perk-row.is-idle {
  opacity: 0.72;
}

.ch-perks-wrap .ch-perk-row__ring {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(238, 85, 25, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ch-perks-wrap .ch-perk-row.is-idle .ch-perk-row__ring {
  border-color: rgba(255, 255, 255, 0.15);
}

.ch-perks-wrap .ch-perk-row__ring-fill {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(#ee5519 0deg, #ee5519 calc(var(--pct, 0) * 3.6deg), transparent calc(var(--pct, 0) * 3.6deg));
  opacity: 0.35;
}

.ch-perks-wrap .ch-perk-row__num {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.ch-perks-wrap .ch-perk-row__body {
  flex: 1;
  min-width: 0;
}

.ch-perks-wrap .ch-perk-row__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.ch-perks-wrap .ch-perk-row__title {
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1.35;
  text-transform: none;
}

.ch-perks-wrap .ch-perk-row__pts {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--ch-perk-gold);
}

.ch-perks-wrap .ch-perk-row__pts em {
  font-style: normal;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
}

.ch-perks-wrap .ch-perk-row__bonus {
  margin: 0 0 8px;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  color: #86efac;
  line-height: 1.35;
}

.ch-perks-wrap .ch-perk-row__track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ch-perks-wrap .ch-perk-row__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ee5519, #fbbf24);
  min-width: 0;
}

.ch-perks-wrap .ch-perk-row__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
  background: linear-gradient(135deg, #ee5519, #f59e0b);
  box-shadow: 0 2px 8px rgba(238, 85, 25, 0.45);
}

@media (max-width: 640px) {
  .ch-perks-wrap .ch-perks-head {
    grid-template-columns: 1fr;
  }
}

/* White character profile overrides */
.character-white-page .ch-perks-wrap {
  --ch-perk-text: #1f2937;
  --ch-perk-muted: #748094;
}
.character-white-page .ch-perks-wrap .ch-perks-stat {
  background: #f8f9fb;
  border-color: #e4e8ee;
}
.character-white-page .ch-perks-wrap .ch-perks-stat--accent {
  background: #fff4ee;
  border-color: #ffd0ba;
}
.character-white-page .ch-perks-wrap .ch-perks-stat__label { color: #798497; }
.character-white-page .ch-perks-wrap .ch-perks-stat__val { color: #d97706; }
.character-white-page .ch-perks-wrap .ch-perk-row {
  background: #f8f9fb;
  border-color: #e5e8ee;
}
.character-white-page .ch-perks-wrap .ch-perk-row:hover { background: #fff; border-color: #ccd2dc; }
.character-white-page .ch-perks-wrap .ch-perk-row.is-active {
  background: linear-gradient(100deg,#fff3ec,#fff 62%);
  border-color: #ffc5aa;
}
.character-white-page .ch-perks-wrap .ch-perk-row__ring {
  color: #374151;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf0f4;
}
.character-white-page .ch-perks-wrap .ch-perk-row.is-idle .ch-perk-row__ring { border-color: #d4d9e1; }
.character-white-page .ch-perks-wrap .ch-perk-row__num { color: #344054; }
.character-white-page .ch-perks-wrap .ch-perk-row__title { color: #20293b; }
.character-white-page .ch-perks-wrap .ch-perk-row__pts em { color: #8b94a4; }
.character-white-page .ch-perks-wrap .ch-perk-row__bonus { color: #16803a; }
.character-white-page .ch-perks-wrap .ch-perk-row__track { background: #e7eaf0; }

/* Compact perks: the counters are secondary information, not hero cards. */
.character-white-page .ch-perks-wrap .ch-perks-head {
  display: flex;
  align-items: center;
  gap: 0;
  margin: -2px 0 10px;
  padding: 7px 10px;
  background: #e9edf2;
  border: 1px solid #d8dde5;
  border-radius: 8px;
}
.character-white-page .ch-perks-wrap .ch-perks-stat,
.character-white-page .ch-perks-wrap .ch-perks-stat--accent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1 1 0;
  min-width: 0;
  padding: 2px 8px;
  background: transparent;
  border: 0;
  border-right: 1px solid #d1d6df;
  border-radius: 0;
  text-align: center;
}
.character-white-page .ch-perks-wrap .ch-perks-stat:last-child { border-right: 0; }
.character-white-page .ch-perks-wrap .ch-perks-stat__label {
  display: inline;
  margin: 0;
  color: #6f798b;
  font-size: 8px;
  letter-spacing: .45px;
  white-space: nowrap;
}
.character-white-page .ch-perks-wrap .ch-perks-stat__val {
  display: inline;
  color: #c94b15;
  font-size: 12px;
  line-height: 1;
}
.character-white-page .ch-perks-wrap .ch-perks-list { gap: 5px; max-height: 260px; }
.character-white-page .ch-perks-wrap .ch-perk-row,
.character-white-page .ch-perks-wrap .ch-perk-row.is-active {
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
}
.character-white-page .ch-perks-wrap .ch-perk-row__ring {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-width: 1px;
}
.character-white-page .ch-perks-wrap .ch-perk-row__ring-fill { left: 9px; top: 7px; width: 28px; height: 28px; }
.character-white-page .ch-perks-wrap .ch-perk-row__num { font-size: 9px; }
.character-white-page .ch-perks-wrap .ch-perk-row__top { align-items: center; margin-bottom: 1px; }
.character-white-page .ch-perks-wrap .ch-perk-row__title { font-size: 10px; line-height: 1.2; }
.character-white-page .ch-perks-wrap .ch-perk-row__pts { font-size: 10px; }
.character-white-page .ch-perks-wrap .ch-perk-row__bonus { margin: 0 0 4px; font-size: 9px; line-height: 1.25; }
.character-white-page .ch-perks-wrap .ch-perk-row__track { height: 3px; }
.character-white-page .ch-perks-wrap .ch-perk-row__badge { top: 4px; right: 4px; width: 15px; height: 15px; font-size: 7px; }
@media (max-width: 520px) {
  .character-white-page .ch-perks-wrap .ch-perks-head { flex-wrap: wrap; }
  .character-white-page .ch-perks-wrap .ch-perks-stat { min-width: 33.333%; padding: 3px 4px; }
  .character-white-page .ch-perks-wrap .ch-perks-stat__label { font-size: 7px; }
}
