.bounties-modal:not(.npc-service-modal) {
  width: min(920px, calc(var(--safe-vw) * .95)) !important;
  max-height: calc(var(--safe-dvh) * .86) !important;
  padding: 16px 20px !important;
  display: flex;
  flex-direction: column;
}

.bounties-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(200, 153, 72, 0.3);
  padding-bottom: 10px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.bounties-title-block .eyebrow {
  margin: 0 0 2px 0;
  font-size: 9px;
  letter-spacing: 1px;
}

.bounties-title-block h2 {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
  font-size: 20px;
}

.bounties-header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bounties-meta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 10px;
  color: #a89f8a;
}

.bounties-purse-val {
  color: var(--gold);
  font-size: 11px;
}

.bounties-close-btn {
  padding: 6px 14px !important;
  font-size: 11px !important;
  white-space: nowrap !important;
  margin-top: 0 !important;
  width: auto !important;
  align-self: center;
}

.bounties-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.bounty-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 12px;
  background: var(--row);
  min-height: 140px;
  transition: background 0.2s;
}

.bounty-card:hover {
  background: var(--row-hover);
}

.bounty-card.completed {
  background: rgba(111, 158, 79, 0.1);
}

.bounty-card.claimed {
  border-color: #24221f;
  background: #090b0d;
  opacity: 0.6;
}

.bounty-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bounty-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.bounty-title {
  color: #f4e8c9;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.bounty-rewards {
  font-size: 10px;
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.bounty-rewards .gold-rew { color: #f1c66f; }
.bounty-rewards .dia-rew { color: #6ee7b7; }

.bounty-desc {
  margin: 0;
  color: #9f9683;
  font-size: 10px;
  line-height: 1.4;
  flex: 1;
}

.bounty-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.bounty-progress-outer {
  flex: 1;
  height: 7px;
  background: #07090a;
  border: 1px solid #3b3328;
  border-radius: 2px;
  overflow: hidden;
}

.bounty-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d49520, #f1c66f);
  transition: width 0.3s ease;
}

.bounty-card.completed .bounty-progress-fill {
  background: linear-gradient(90deg, #3d8b37, #5ee454);
}

.bounty-count-label {
  color: #a89f8a;
  font-size: 9px;
  min-width: 32px;
  text-align: right;
  font-weight: 600;
}

.bounty-action-btn {
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 10px;
  white-space: nowrap;
  margin-top: auto;
}

.bounty-btn-claim {
  animation: bounty-pulse 2s infinite ease-in-out;
}

@keyframes bounty-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(241,198,111,0.3); }
  50% { box-shadow: 0 0 12px rgba(241,198,111,0.7); }
}

.bounties-cache-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0 0;
  border-top: 1px solid var(--rule);
  margin-top: auto;
  margin-bottom: 0;
}

.bounties-cache-box.bonus-claimed {
  border-style: solid;
  border-color: #2b251a;
  background: #0a0907;
  opacity: 0.6;
}

.bounties-cache-title {
  color: #f1c66f;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 2px;
}

.bounties-cache-desc {
  color: #aba08c;
  font-size: 10px;
  line-height: 1.4;
}

#btn-claim-bounty-bonus {
  min-width: 130px;
  min-height: 34px;
  font-size: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 1000px) {
  .bounties-modal:not(.npc-service-modal) {
    width: min(540px, calc(var(--safe-vw) * .95)) !important;
  }
  .bounties-modal-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .bounties-header-controls {
    justify-content: space-between;
  }
  .bounties-list {
    grid-template-columns: 1fr;
  }
  .bounty-card {
    flex-direction: row;
    align-items: center;
  }
  .bounty-action-btn {
    width: auto;
    min-width: 95px;
  }
  .bounties-cache-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 8px;
  }
}

/* Item comparison stat diffs */
.gear-stat-diffs { margin-top: 4px; font-size: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.diff-label { color: #888; }
.stat-diff.positive { color: #50fa7b; font-weight: bold; }
.stat-diff.negative { color: #ff5555; }
