img {
    width: 15%;
    margin: auto;
}

.autocomplete-suggestions {
  background-color: #fff;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  z-index: 4
}

.autocomplete-suggestion {
  cursor: pointer;
  padding: 8px
}

.autocomplete-suggestion:hover {
  background-color: #f0f0f0
}

#selected-heroes {
  display: flex;
  flex-wrap: nowrap;
  margin-top: 20px;
  overflow: auto
}

.hero-result,
.selected-hero {
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  padding: 20px 20px 10px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #2a2a4a 0%, #1a1a2e 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-result strong,
.selected-hero strong {
  white-space: nowrap
}

#heroes-filtered {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: left;
  padding-top: 20px;
}

.filtered-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  width: 100%;
  color: #fff;
}

.filtered-summary #filtered-total {
  font-weight: 700;
}

.filtered-summary .buff,
.filtered-summary .debuff {
  margin: 0 6px 0 0;
  background-size: 24px 24px !important;
  width: 24px;
  height: 24px;
  padding: 0;
  text-indent: -9999px;
  overflow: hidden;
}

.hero-result:nth-child(5n),
.selected-hero:nth-child(5n) {
  margin-right: 0
}

#hero-search-results .selected-hero:nth-child(5n),
#selected-heroes .selected-hero:nth-child(5n) {
  margin-right: 20px
}

.selected-hero:hover {
  background-color: rgba(32, 116, 219, .3607843137254902)
}

.hero-buffs,
.hero-debuffs,
.hero-element,
.hero-rarity,
.hero-faction,
.hero-role {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin-top: 5px;
  text-align: left;
  font-size: 14px;
}

.hero-buffs span,
.hero-debuffs span {
  display: block
}

#autocomplete-results {
  margin-top: 20px
}

#all-buffs,
#all-debuffs {
  font-size: 14px;
  margin-top: 20px
}

.buff,
.debuff,
.element,
.popup-buff,
.popup-debuff,
.rarity,
.faction,
.role {
  align-items: center;
  background-color: #1957a3;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  height: 24px;
  justify-content: center;
  margin: 0 10px 10px 0;
  padding: 0 20px;
  width: auto;
  border-radius: 8px;
  background-repeat: no-repeat!important;
}

/* Old icon-only styles removed - now using effect-icon + effect-heroes */

.highlighted,
.selected {
  background-color: #023968
}

.heroes-filtered {
  color: #333;
  font-size: 14px;
  margin-top: 20px
}

#clear-selection {
  background-color: #ff4747;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  margin-top: 20px;
  padding: 10px;
  position: fixed;
  right: 10px;
  top: 0;
  width: 387px;
}

#clear-selection:hover {
  background-color: #ff1c1c
}

.exclusive-mode-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 10px 15px;
  background: linear-gradient(135deg, #2a2a4a 0%, #1a1a2e 100%);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  border: 1px solid #3a3a5a;
  transition: all 0.2s ease;
  position: fixed;
  right: 10px;
  top: 60px;
  width: 355px;
  z-index: 100;
}

.exclusive-mode-toggle:hover {
  border-color: #5a5a8a;
  background: linear-gradient(135deg, #3a3a5a 0%, #2a2a3e 100%);
}

.exclusive-mode-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #6c5ce7;
}

.exclusive-mode-toggle span {
  color: #b8b8d0;
  font-size: 14px;
}

.exclusive-mode-toggle:has(input:checked) {
  border-color: #6c5ce7;
  background: linear-gradient(135deg, #3a3a6a 0%, #2a2a4e 100%);
}

.exclusive-mode-toggle:has(input:checked) span {
  color: #fff;
}

.empty-filter {
  color: #666;
  font-style: italic;
  padding: 5px;
}

.buff.inactive,
.popup-debuff.inactive {
  opacity: .5;
  pointer-events: none
}

body {
  background: #000;
  font: 400 18px/1.72 Zekton;
  font-family: sans-serif;
  margin: auto;
  max-width: 80%
}

h3 {
  color: #000
}

#filtered-heroes-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.selected-hero img {
  height: auto;
  margin: 10px auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

#pinned-heroes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

#search {
  background: #eee;
  border: 0;
  padding: 15px;
  width: 80%
}

.buff.selected,
.popup-debuff.selected {
  background-color: #fc0;
  color: #000;
}

.buff {
  width: 52px
}

.buff, .debuff, .popup-debuff, .popup-buff {
  background-repeat: no-repeat;
  cursor: pointer;
  display: inline-block;
  height: 24px;
  overflow: hidden;
  padding: 0;
  text-indent: -9999px;
  width: 24px;
  background-size: contain!important;
}

.popup-debuff {
  background-size: 52px;
  min-width: 52px
}

.highlighted,
.highlighted:hover {
  border-radius:5px;
}

.buff.highlighted,
.buff:hover {
  outline: 4px inset #024076
}

.debuff.highlighted,
.debuff.highlighted:hover {
  outline: 4px inset #af0128;
}

#buffs-list,
#debuffs-list {
  display: block;
}

.list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.list-meta .buff,
.list-meta .debuff {
  width: auto;
  padding: 0 14px;
  text-indent: 0;
  background-size: 24px 24px !important;
}

.buff-grid,
.debuff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30px, 32px));
  gap: 9px;
  /* Максимальная ширина сетки = 11 колонок */
  max-width: calc(11 * 32px + 10 * 12px);
}

.buff-grid .buff,
.debuff-grid .debuff {
  width: 32px;
  height: 32px;
  padding: 0!important;
  text-indent: -9999px;
  overflow: hidden;
  background-size: 32px 32px !important;
  margin: 0 0px 0px 0!important;
}

.buffs-list .buff,
.debuffs-list .debuff,
.popup-debuffs-list .popup-debuff {
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 26px;
  background-size: 26px;
  color: #000;
  height: 26px;
  margin: 0 4px 0 0;
  min-width: 26px;
  padding: 0;
  width: 26px
}

.buffs-list .buff:hover,
.popup-debuffs-list .popup-debuff:hover {
  outline: none
}

.buffs-list,
.debuffs-list,
.popup-debuffs-list {
  margin: 0;
  padding: 5px 0 0
}

.hero-buffs strong,
.hero-debuffs strong {
  width: 100%
}

.recommended-hero {
  background: rgba(32, 116, 219, .10980392156862745);
  cursor: pointer;
  display: inline-block;
  display: flex;
  flex: 0 calc(20% - 12px);
  flex-direction: column;
  margin: 5px;
  padding: 20px;
  text-align: center
}

#recommended-team {
  display: flex
}

#recommend-team {
  background: #fcc208;
  color: #000
}

#recommend-team,
button {
  border: 0;
  border-radius: 8px;
  margin: 10px 0
}

button {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  height: 44px;
  padding: 0 20px;
  width: 280px;
}

#hero-search-results {
  align-items: stretch;
  display: flex;
  flex-wrap: nowrap;
  margin-top: 20px;
  overflow: auto
}

#select-all-heroes {
  background: #f6b808;
  color: #000;
  height: 106px;
  margin: 0 5px 15px;
  min-width: 320px
}

#hero-search {
  border-color: #1459f8;
  border-width: 3px;
  color: #1459f8;
  font-size: 18px;
  height: 68px;
  margin: 0 42px 0 0;
  padding: 0 30px;
  text-align: left;
  width: 96%
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500
}

h5 {
  &.undertitle {
    font-size: 45px
  }
}

.h5 {
  font: 36px/1.33 $font
}

.h6 {
  font: 25px/1.76 $font
}

#filtered-heroes-list:empty::after {
  content: "Выберите бафы или дебафы"
}

h1 {
  margin: 87px auto 105px
}

.container {
  /* background: #fff; */
  margin: auto;
  max-width: 80%;
  padding: 0;
  width: 100%
}

h1 {
  font-size: 70px;
  line-height: 80px;
  margin: 0 0 50px
}

h2 {
  font-size: 26px;
  line-height: 34px;
  margin: 0 0 15.5px;
}

h3 {
  font-size: 30.8px;
  line-height: 37.2px;
}

h3,
h4 {
  margin: 20px 0
}

h4 {
  font-size: 35.84px;
  line-height: 40.96px
}

h5 {
  font-size: 28.672px;
  line-height: 32.768px;
  margin: 0 0 75.90352px
}

h6 {
  font-size: 22.9376px;
  line-height: 26.2144px;
  margin: 0 0 84.25291px
}

h1,
h2,
h3,
h4,
h5,
h6 {
  background: radial-gradient(78.13% 515.73% at 44.26% 57.3%, #909090 0, #ffffff 100%);
  -webkit-background-clip: text;
  font-family: Zekton;
  font-weight: 300;
  position: relative;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent
}

.h5 {
  font: 36px/1.33 Zekton;
  margin-bottom: 12px
}

.h6 {
  font: 25px/1.76 Zekton;
  margin-bottom: 22px
}

#element-list,
#rarity-list,
#faction-list,
#role-list {
  display: flex;
  flex-wrap: wrap;
}

#missing-buffs:empty::after,
#missing-debuffs:empty::after,
#selected-heroes:empty::after {
  content: "Нет выбранных героев"
}

h1 {
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 auto;
  text-align: center;
  width: 70%
}

/* No pinned message is now handled via JS for i18n support */
.no-pinned-message {
  color: #888;
  font-style: italic;
  padding: 1rem;
  text-align: center;
}

#buffs-chosed,
#debuffs-chosed,
#filtered-heroes-list:empty::after,
#filtered-heroes-list p,
#missing-buffs:empty::after,
#missing-buffs:not(:empty),
#missing-debuffs:empty::after,
#missing-debuffs:not(:empty),
#pinned-heroes-list::after,
#selected-heroes:empty::after {
  box-sizing: border-box;
  color: #fff;
  display: flex;
  text-align: center;
  width: 100%
}

/* Old icon-only styles removed - now using effect-icon + effect-heroes */

.box {
  background: #fff;
  margin: 20px 0;
  padding: 30px 40px;
  color: #fff;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom {
}

#popup {
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
  left: 50%;
  max-width: 800px;
  padding: 40px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 3
}

.hidden {
  display: none
}

.popup-overlay {
  background: rgba(0, 0, 0, .5);
  display: none;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2
}

.popup-overlay.active {
  display: block
}

#popup .close-btn {
  background: #ff4d4d;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: block;
  margin-left: auto;
  padding: 5px 10px
}

#popup .box {
  background: transparent;
  padding: 0
}

#popup-overlay {
  background: rgba(0, 0, 0, .7411764705882353);
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1
}

#popup h3,
#popup h4 {
  font-size: 15px;
  line-height: 1.3
}

#popup #recommended-team-container {
  background: #eee;
  padding: 0 20px 20px
}

#missing-debuffs:empty::after,
#popup #missing-buffs:empty::after,
#selected-heroes:empty::after {
  padding: 15px
}

#popup input {
  box-sizing: border-box;
  margin: 0;
  padding: 10px;
  width: 100%
}

#close-popup-btn {
  background: #f6b808;
  border-radius: 0;
  color: #000;
  height: 50px;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 0;
  top: -1px;
  width: 50px
}

.element[data-element="дух"],
.element[data-element="магия"],
.element[data-element="сила"],
.element[data-element="тьма"],
.buff[data-buff="6+ бафов"],
.buff[data-buff="нет"],
.popup-buff[data-buff="6+ бафов"],
.popup-buff[data-buff="нет"],
.popup-debuff[data-debuff="6+ дебафов"],
.popup-debuff[data-debuff="8+ бафов/дебафов"],
.popup-debuff[data-debuff="нет"],
.debuff[data-debuff="6+ дебафов"],
.debuff[data-debuff="8+ бафов/дебафов"],
.debuff[data-debuff="нет"] {
  align-items: center;
  display: inline-flex;
  order: -1;
  padding: 0 20px;
  text-indent: 0;
  white-space: nowrap;
  width: auto;
  border-radius: 8px;
}

.popup-buff[data-buff*="каменная кожа"], .buff[data-buff*="каменная кожа"] {
  background: url("assets/icons/bafy_20.png")
}

.popup-buff[data-buff*="щит"], .buff[data-buff*="щит"] {
  background: url("assets/icons/bafy_16.png")
}

.popup-buff[data-buff*="блок урона"], .buff[data-buff*="блок урона"] {
  background: url("assets/icons/bafy_2.png")
}

.popup-buff[data-buff*="регенерация"], .buff[data-buff*="регенерация"] {
  background: url("assets/icons/bafy_14.png")
}

.popup-buff[data-buff*="бонус зщт"], .buff[data-buff*="бонус зщт"] {
  background: url("assets/icons/bafy_3.png")
}

.popup-buff[data-buff*="усиление"], .buff[data-buff*="усиление"] {
  background: url("assets/icons/bafy_15.png")
}

.popup-buff[data-buff*="бонус атк"], .buff[data-buff*="бонус атк"] {
  background: url("assets/icons/bafy_4.png")
}

.popup-buff[data-buff*="контратака"], .buff[data-buff*="контратака"] {
  background: url("assets/icons/bafy_10.png")
}

.popup-buff[data-buff*="щит союзников"], .buff[data-buff*="щит союзников"] {
  background: url("assets/icons/bafy_17.png")
}

.popup-buff[data-buff*="блок штрафов"], .buff[data-buff*="блок штрафов"] {
  background: url("assets/icons/bafy_1.png")
}

.popup-buff[data-buff*="бонус метк"], .buff[data-buff*="бонус метк"] {
  background: url("assets/icons/bafy_7.png")
}

.popup-buff[data-buff*="бонус кш"], .buff[data-buff*="бонус кш"] {
  background: url("assets/icons/bafy_6.png")
}

.popup-buff[data-buff="пелена"], .buff[data-buff="пелена"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/veil.png");
}
.popup-buff[data-buff="пелена мал."], .buff[data-buff="пелена мал."] {
  background-image: url("assets/icons/bafy_13.png");
}
.popup-buff[data-buff="совершенная пелена"], .buff[data-buff="совершенная пелена"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/perfect-veil.png");
}

.popup-buff[data-buff*="бонус скр"], .buff[data-buff*="бонус скр"] {
  background: url("assets/icons/bafy_8.png")
}

.popup-buff[data-buff*="возрождение"], .buff[data-buff*="возрождение"] {
  background: url("assets/icons/bafy_9.png")
}

.popup-buff[data-buff*="отражение"], .buff[data-buff*="отражение"] {
  background: url("assets/icons/bafy_12.png")
}

.popup-buff[data-buff*="насмешка"], .buff[data-buff*="насмешка"] {
  background: url("assets/icons/bafy_19.png")
}

.popup-buff[data-buff*="бонус сопр"], .buff[data-buff*="бонус сопр"] {
  background: url("assets/icons/bafy_18.png")
}

.popup-buff[data-buff*="неуязвимость"], .buff[data-buff*="неуязвимость"] {
  background: url("assets/icons/bafy_11.png")
}

.popup-buff[data-buff*="непробиваемость"], .buff[data-buff*="непробиваемость"] {
  background: url("assets/icons/bafy_11.png")
}

.popup-buff[data-buff*="надлом"], .buff[data-buff*="надлом"] {
  background: url("assets/icons/bafy_21.png")
}

.popup-buff[data-buff*="бонус ку"], .buff[data-buff*="бонус ку"] {
  background: url("assets/icons/bafy_5.png")
}

.popup-buff[data-buff*="перехват"], .buff[data-buff*="перехват"] {
  background: url("assets/icons/bafy_21.png")
}

.popup-buff[data-buff*="ядовитый покров"], .buff[data-buff*="ядовитый покров"] {
  background: url("assets/icons/bafy_22.png")
}

/* Дебафы */

.popup-debuff[data-debuff*="штраф зщт"],
.debuff[data-debuff*="штраф зщт"] {
  background: url("assets/icons/debafy_15.png")
}

.popup-debuff[data-debuff*="блок бонусов"],
.debuff[data-debuff*="блок бонусов"] {
  background: url("assets/icons/debafy_1.png")
}

.popup-debuff[data-debuff*="слабость"],
.debuff[data-debuff*="слабость"] {
  background: url("assets/icons/debafy_10.png")
}

.popup-debuff[data-debuff*="заморозка"],
.debuff[data-debuff*="заморозка"] {
  background: url("assets/icons/debafy_6.png")
}

.popup-debuff[data-debuff*="штраф скр"],
.debuff[data-debuff*="штраф скр"] {
  background: url("assets/icons/debafy_20.png")
}

.popup-debuff[data-debuff*="штраф атк"],
.debuff[data-debuff*="штраф атк"] {
  background: url("assets/icons/debafy_14.png")
}

.popup-debuff[data-debuff*="оглушение"],
.debuff[data-debuff*="оглушение"] {
  background: url("assets/icons/debafy_7.png")
}

.popup-debuff[data-debuff*="овца"],
.debuff[data-debuff*="овца"] {
  background: url("assets/icons/debafy_27.png")
}

.popup-debuff[data-debuff*="выжигание"],
.debuff[data-debuff*="выжигание"] {
  background: url("assets/icons/debafy_5.png")
}

.popup-debuff[data-debuff*="бомба"],
.debuff[data-debuff*="бомба"] {
  background: url("assets/icons/debafy_4.png")
}

.popup-debuff[data-debuff*="яды"],
.debuff[data-debuff*="яды"] {
  background: url("assets/icons/debafy_21.png")
}

.popup-debuff[data-debuff*="штраф метк"],
.debuff[data-debuff*="штраф метк"] {
  background: url("assets/icons/debafy_19.png")
}

.popup-debuff[data-debuff*="изнурение"],
.debuff[data-debuff*="изнурение"] {
  background: url("assets/icons/debafy_28.png")
}

.popup-debuff[data-debuff*="провокация"],
.debuff[data-debuff*="провокация"] {
  background: url("assets/icons/debafy_9.png")
}

.popup-debuff[data-debuff*="паразит"],
.debuff[data-debuff*="паразит"] {
  background: url("assets/icons/debafy_8.png")
}

.popup-debuff[data-debuff*="блок ан"],
.debuff[data-debuff*="блок ан"] {
  background: url("assets/icons/debafy_3.png")
}

.popup-debuff[data-debuff*="сон"],
.debuff[data-debuff*="сон"] {
  background: url("assets/icons/debafy_12.png")
}

.popup-debuff[data-debuff*="порча"],
.debuff[data-debuff*="порча"] {
  background: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/hex.png")
}

.popup-debuff[data-debuff*="окоченение"],
.debuff[data-debuff*="окоченение"] {
  background: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/necrosis.png")
}

.popup-debuff[data-debuff*="штраф лечения"],
.debuff[data-debuff*="штраф лечения"] {
  background: url("assets/icons/debafy_18.png")
}

.popup-debuff[data-debuff*="страх"],
.debuff[data-debuff*="страх"] {
  background: url("assets/icons/debafy_13.png")
}

.popup-debuff[data-debuff*="истинный страх"],
.debuff[data-debuff*="истинный страх"] {
  background: url("assets/icons/debafy_22.png")
}

.popup-debuff[data-debuff*="штраф сопр"],
.debuff[data-debuff*="штраф сопр"] {
  background: url("assets/icons/debafy_26.png")
}

.popup-debuff[data-debuff*="блок воскр."],
.debuff[data-debuff*="блок воскр."] {
  background: url("assets/icons/debafy_2.png")
}

.popup-debuff[data-debuff*="штраф ку"],
.debuff[data-debuff*="штраф ку"] {
  background: url("assets/icons/debafy_16.png")
}

.popup-debuff[data-debuff*="штраф кш"],
.debuff[data-debuff*="штраф кш"] {
  background: url("assets/icons/debafy_17.png")
}

.popup-debuff[data-debuff*="слабость к яду"],
.debuff[data-debuff*="слабость к яду"] {
  background: url("assets/icons/debafy_11.png")
}

.popup-debuff[data-debuff*="печать смерти"], .debuff[data-debuff*="печать смерти"],
.popup-debuff[data-debuff*="печать"], .debuff[data-debuff*="печать"] {
  background: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/deathbrand.png")
}

.popup-debuff[data-debuff*="обезвреживание"], .debuff[data-debuff*="обезвреживание"] {
  background: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/ensnare-big.png")
}

.popup-debuff[data-debuff*="омертвение"], .debuff[data-debuff*="омертвение"] {
  background: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/necrosis.png")
}

.popup-debuff[data-debuff*="взгляд охотника"], .debuff[data-debuff*="взгляд охотника"],
.popup-debuff[data-debuff*="hunters gaze"], .debuff[data-debuff*="hunters gaze"] {
  background: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/hunters-gaze.png")
}

.popup-debuff[data-debuff*="печать"], .debuff[data-debuff*="печать"] {
  background: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/seal.png")
}

.popup-debuff[data-debuff*="обезвреживание"], .debuff[data-debuff*="обезвреживание"] {
  background: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/ensnare-big.png")
}

.popup-debuff[data-debuff*="омертвение"], .debuff[data-debuff*="омертвение"] {
  background: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/necrosis.png")
}

.popup-debuff[data-debuff*="узы боли"], .debuff[data-debuff*="узы боли"],
.popup-debuff[data-debuff*="pain link"], .debuff[data-debuff*="pain link"] {
  background: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/pain-link.png")
}

.popup-debuff[data-debuff*="заражение"], .debuff[data-debuff*="заражение"] {
  background: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/infest.png")
}

.popup-debuff[data-debuff*="берсерк"], .debuff[data-debuff*="берсерк"],
.popup-debuff[data-debuff*="rage"], .debuff[data-debuff*="rage"] {
  background: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/rage.png")
}

.popup-buff[data-buff*="надлом"], .buff[data-buff*="надлом"] {
  background: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/shatter-big.png")
}

.popup-buff[data-buff*="непробиваемость"], .buff[data-buff*="непробиваемость"] {
  background: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/fortify-big.png")
}

.popup-debuff[data-debuff*="заражение"], .debuff[data-debuff*="заражение"] {
  background: url("assets/icons/debafy_21.png")
}

.popup-debuff[data-debuff*="узы боли"], .debuff[data-debuff*="узы боли"],
.popup-debuff[data-debuff*="pain link"], .debuff[data-debuff*="pain link"] {
  background: url("assets/icons/debafy_14.png")
}

.popup-debuff[data-debuff*="берсерк"], .debuff[data-debuff*="берсерк"],
.popup-debuff[data-debuff*="rage"], .debuff[data-debuff*="rage"] {
  background: url("assets/icons/debafy_16.png")
}

.popup-debuff[data-debuff*="блок пассивок"],
.debuff[data-debuff*="блок пассивок"] {
  background: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/deathbrand.png")
}

#popup-buffs-list,#popup-debuffs-list {
    display: flex;
    flex-wrap: wrap;
}

/* updated effect icons */
.buff[data-buff="регенерация мал."], .popup-buff[data-buff="регенерация мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/continuous-heal-small.png");
}
.buff[data-buff="регенерация"], .popup-buff[data-buff="регенерация"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/continuous-heal-big.png");
}
.buff[data-buff="бонус атк мал."], .popup-buff[data-buff="бонус атк мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/increase-attack-small.png");
}
.buff[data-buff="бонус атк"], .popup-buff[data-buff="бонус атк"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/increase-attack-big.png");
}
.buff[data-buff="бонус зщт мал."], .popup-buff[data-buff="бонус зщт мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/increase-defense-small.png");
}
.buff[data-buff="бонус зщт"], .popup-buff[data-buff="бонус зщт"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/increase-defense-big.png");
}
.buff[data-buff="бонус скр мал."], .popup-buff[data-buff="бонус скр мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/increase-speed-small.png");
}
.buff[data-buff="бонус скр"], .popup-buff[data-buff="бонус скр"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/increase-speed-big.png");
}
.buff[data-buff="бонус метк мал."], .popup-buff[data-buff="бонус метк мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/increase-accuracy-small.png");
}
.buff[data-buff="бонус метк"], .popup-buff[data-buff="бонус метк"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/increase-accuracy-big.png");
}
.buff[data-buff="бонус сопр мал."], .popup-buff[data-buff="бонус сопр мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/increase-resistance-small.png");
}
.buff[data-buff="бонус сопр"], .popup-buff[data-buff="бонус сопр"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/increase-resistance-big.png");
}
.buff[data-buff="бонус кш мал."], .popup-buff[data-buff="бонус кш мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/increase-crit-rate-small.png");
}
.buff[data-buff="бонус кш"], .popup-buff[data-buff="бонус кш"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/increase-crit-rate-big.png");
}
.buff[data-buff="бонус ку мал."], .popup-buff[data-buff="бонус ку мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/increase-crit-dmg-small.png");
}
.buff[data-buff="бонус ку"], .popup-buff[data-buff="бонус ку"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/increase-crit-dmg-big.png");
}
.buff[data-buff="щит"], .popup-buff[data-buff="щит"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/shield-skill.png");
}
.buff[data-buff="щит союзников мал."], .popup-buff[data-buff="щит союзников мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/ally-protect-small.png");
}
.buff[data-buff="щит союзников"], .popup-buff[data-buff="щит союзников"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/ally-protect-big.png");
}
.buff[data-buff="контратака"], .popup-buff[data-buff="контратака"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/counter-attack.png");
}
.buff[data-buff="отражение"], .popup-buff[data-buff="отражение"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/reflect-damage-big.png");
}
.buff[data-buff="отражение мал."], .popup-buff[data-buff="отражение мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/reflect-damage-small.png");
}
.buff[data-buff="пелена"], .popup-buff[data-buff="пелена"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/veil.png");
}
.buff[data-buff="совершенная пелена"], .popup-buff[data-buff="совершенная пелена"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/perfect-veil.png");
}
.buff[data-buff="блок урона"], .popup-buff[data-buff="блок урона"] {
  background-image: url("assets/icons/bafy_2.png");
}
.buff[data-buff="неуязвимость"], .popup-buff[data-buff="неуязвимость"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/unkillable.png");
}
.buff[data-buff="блок штрафов"], .popup-buff[data-buff="блок штрафов"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/block-debuffs.png");
}
.buff[data-buff="усиление мал."], .popup-buff[data-buff="усиление мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/strengthen-small.png");
}
.buff[data-buff="усиление"], .popup-buff[data-buff="усиление"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/strengthen-big.png");
}
.buff[data-buff="непробиваемость"], .popup-buff[data-buff="непробиваемость"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/fortify-big.png");
}
.buff[data-buff="надлом мал."], .popup-buff[data-buff="надлом мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/shatter-small.png");
}
.buff[data-buff="надлом"], .popup-buff[data-buff="надлом"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/shatter-big.png");
}
.buff[data-buff="возрождение"], .popup-buff[data-buff="возрождение"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/revive-on-death.png");
}

.debuff[data-debuff="бомба"], .popup-debuff[data-debuff="бомба"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/bomb.png");
}
.debuff[data-debuff="выжигание"], .popup-debuff[data-debuff="выжигание"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/hp-burn.png");
}
.debuff[data-debuff="яды мал."], .popup-debuff[data-debuff="яды мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/poison-small.png");
}
.debuff[data-debuff="яды"], .popup-debuff[data-debuff="яды"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/poison-big.png");
}
.debuff[data-debuff="слабость мал."], .popup-debuff[data-debuff="слабость мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/weaken-small.png");
}
.debuff[data-debuff="слабость"], .popup-debuff[data-debuff="слабость"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/weaken-big.png");
}
.debuff[data-debuff="штраф атк мал."], .popup-debuff[data-debuff="штраф атк мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/decrease-attack-small.png");
}
.debuff[data-debuff="штраф атк"], .popup-debuff[data-debuff="штраф атк"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/decrease-attack-big.png");
}
.debuff[data-debuff="штраф зщт мал."], .popup-debuff[data-debuff="штраф зщт мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/decrease-defense-small.png");
}
.debuff[data-debuff="штраф зщт"], .popup-debuff[data-debuff="штраф зщт"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/decrease-defense-big.png");
}
.debuff[data-debuff="штраф скр мал."], .popup-debuff[data-debuff="штраф скр мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/decrease-speed-small.png");
}
.debuff[data-debuff="штраф скр"], .popup-debuff[data-debuff="штраф скр"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/decrease-speed-big.png");
}
.debuff[data-debuff="штраф метк мал."], .popup-debuff[data-debuff="штраф метк мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/decrease-accuracy-small.png");
}
.debuff[data-debuff="штраф метк"], .popup-debuff[data-debuff="штраф метк"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/decrease-accuracy-big.png");
}
.debuff[data-debuff="штраф кш"], .popup-debuff[data-debuff="штраф кш"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/decrease-crit-rate-big.png");
}
.debuff[data-debuff="штраф ку"], .popup-debuff[data-debuff="штраф ку"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/decrease-crit-dmg-big.png");
}
.debuff[data-debuff="штраф лечения мал."], .popup-debuff[data-debuff="штраф лечения мал."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/heal-reduction-small.png");
}
.debuff[data-debuff="штраф лечения"], .popup-debuff[data-debuff="штраф лечения"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/heal-reduction-big.png");
}
.debuff[data-debuff="штраф сопр"], .popup-debuff[data-debuff="штраф сопр"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/decrease-resistance-big.png");
}
.debuff[data-debuff="сон"], .popup-debuff[data-debuff="сон"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/sleep.png");
}
.debuff[data-debuff="страх"], .popup-debuff[data-debuff="страх"] {
  background-image: url("assets/icons/debafy_13.png");
}
.debuff[data-debuff="истинный страх"], .popup-debuff[data-debuff="истинный страх"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/true-fear.png");
}
.debuff[data-debuff="оглушение"], .popup-debuff[data-debuff="оглушение"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/stun.png");
}
.debuff[data-debuff="заморозка"], .popup-debuff[data-debuff="заморозка"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/freeze.png");
}
.debuff[data-debuff="провокация"], .popup-debuff[data-debuff="провокация"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/provoke.png");
}
.debuff[data-debuff="паразит"], .popup-debuff[data-debuff="паразит"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/leech.png");
}
.debuff[data-debuff="блок ан"], .popup-debuff[data-debuff="блок ан"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/block-active-skills.png");
}
.debuff[data-debuff="блок бонусов"], .popup-debuff[data-debuff="блок бонусов"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/block-buffs.png");
}
.debuff[data-debuff="блок пассивок"], .popup-debuff[data-debuff="блок пассивок"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/block-passive-skills.png");
}
.debuff[data-debuff="блок воскр."], .popup-debuff[data-debuff="блок воскр."] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/block-revive.png");
}
.debuff[data-debuff="окоченение"], .popup-debuff[data-debuff="окоченение"] {
  background-image: url("assets/icons/debafy_25.png");
}
.debuff[data-debuff="обезвреживание"], .popup-debuff[data-debuff="обезвреживание"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/ensnare-big.png");
}
.debuff[data-debuff="узы боли"], .popup-debuff[data-debuff="узы боли"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/pain-link.png");
}
.debuff[data-debuff="берсерк"], .popup-debuff[data-debuff="берсерк"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/rage.png");
}
.debuff[data-debuff="заражение"], .popup-debuff[data-debuff="заражение"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/infest.png");
}
.debuff[data-debuff="взгляд охотника"], .popup-debuff[data-debuff="взгляд охотника"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/hunters-gaze.png");
}
.debuff[data-debuff="печать"], .popup-debuff[data-debuff="печать"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/seal.png");
}
.debuff[data-debuff="печать смерти"], .popup-debuff[data-debuff="печать смерти"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/deathbrand.png");
}
.debuff[data-debuff="аннуляция"], .popup-debuff[data-debuff="аннуляция"] {
  background-image: url("assets/effects/wp-content/plugins/rsl-assets/assets/effects/nullify.png");
}

/* ========== RAID.BAR BUNDLES ========== */
.search-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.search-bundles-btn {
  background: #1957a3;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.search-bundles-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
}
.search-bundles-btn.secondary {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}
.search-bundles-btn.secondary:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}
.search-bundles-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.smart-team-builder {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.smart-team-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.smart-team-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  transform: translateY(-1px);
}
#smart-team-size,
#smart-team-preset {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 14px;
}
#smart-team-preset {
  min-width: 180px;
}
.smart-team-result {
  margin-top: 15px;
  padding: 15px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.smart-team-result h4 {
  margin: 0 0 10px 0;
  color: #7c3aed;
}
.smart-team-heroes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.smart-team-hero {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border-radius: 20px;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.2s;
}
.smart-team-hero:hover {
  background: #f0fdf4;
  transform: scale(1.02);
}
.smart-team-hero img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.smart-team-coverage {
  font-size: 13px;
  color: #666;
}
.smart-team-coverage .covered {
  color: #059669;
}
.smart-team-coverage .missing {
  color: #dc2626;
}

/* Chimera Results */
.chimera-results {
  max-height: 600px;
  overflow-y: auto;
}
.chimera-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chimera-account {
  background: #191b30;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.2s;
  /* border: 1px solid #e5e7eb; */
}
.chimera-account:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-color: #8b5cf6;
}
.chimera-account-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.chimera-account-header .rank {
  font-weight: 700;
  color: #6366f1;
  font-size: 14px;
}
.chimera-account-header .coverage-badge {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.chimera-account-header .coverage-badge.high {
  background: #d1fae5;
  color: #065f46;
}
.chimera-account-header .account-code {
  font-family: monospace;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.chimera-account-header .account-price {
  margin-left: auto;
  font-weight: 600;
  color: #059669;
}
.chimera-heroes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.chimera-hero {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #f9fafb;
  border-radius: 16px;
  font-size: 12px;
}
.chimera-hero img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.chimera-effects {
  font-size: 11px;
}
.effect-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  margin: 2px;
}
.effect-tag.covered {
  background: #d1fae5;
  color: #065f46;
}
.effect-tag.missing {
  background: #fee2e2;
  color: #991b1b;
}
.missing-effects {
  margin-top: 6px;
  color: #dc2626;
}

/* Effects counter and coverage */
.effect-counter {
  font-weight: 600;
  color: #8b5cf6;
}
.effects-coverage {
  margin-top: 12px;
  padding: 10px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#coverage-text {
  color: #0369a1;
  font-weight: 500;
}
.search-by-effects-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
}
.search-by-effects-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.bundles-results {
  margin-top: 20px;
  background: rgba(99, 102, 241, 0.05);
}
.bundles-results h3 {
  margin: 0 0 15px 0;
  color: #6366f1;
}

#bundles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
#bundles-list .loading,
#bundles-list .error,
#bundles-list .no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  color: #666;
}
#bundles-list .error {
  color: #dc2626;
}

.scroll-sentinel {
  grid-column: 1 / -1;
  height: 50px;
}

.bundle-card {
  background: linear-gradient(135deg, #2a2a4a 0%, #1a1a2e 100%);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bundle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.bundle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bundle-id {
  font-family: monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
}
.bundle-id:hover {
  color: #fff;
}
.bundle-code {
  font-family: monospace;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.bundle-code:hover {
  color: #c4b5fd;
}
.bundle-code .copy-icon {
  opacity: 0.6;
  transition: opacity 0.2s;
}
.bundle-code:hover .copy-icon {
  opacity: 1;
}

.bundle-price {
  font-size: 20px;
  font-weight: 700;
  color: #f59e0b;
}

.bundle-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bundle-shards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 16px;
  font-size: 12px;
  color: #a78bfa;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.resource {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.resource-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.bundle-grades {
  display: none;
}

.bundle-heroes {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
  max-height: 320px;
  overflow: hidden;
}
.bundle-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  font-size: 14px;
  color: #fff;
  background: transparent;
  border-radius: 0;
  transition: background 0.15s ease;
}
.bundle-hero:hover {
  background: rgba(255,255,255,0.05);
}
.bundle-hero-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
  max-width: 36px;
  margin: 0;
}
.bundle-hero.mythic { color: #ef4444; }
.bundle-hero.mythic .bundle-hero-avatar { border-color: #ef4444; }
.bundle-hero.legendary { color: #facc15; }
.bundle-hero.legendary .bundle-hero-avatar { border-color: #facc15; }
.bundle-hero.epic { color: #a855f7; }
.bundle-hero.epic .bundle-hero-avatar { border-color: #a855f7; }
.bundle-hero.rare { color: #3b82f6; }
.bundle-hero.rare .bundle-hero-avatar { border-color: #3b82f6; }
.bundle-hero.uncommon { color: #22c55e; }
.bundle-hero.uncommon .bundle-hero-avatar { border-color: #22c55e; }

.more-heroes {
  padding: 8px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.bundle-hero.hidden-hero {
  display: none;
}
.bundle-hero-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.bundle-toggle {
  padding: 10px 16px;
  text-align: center;
  color: #a78bfa;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.bundle-toggle:hover {
  color: #c4b5fd;
}

.bundle-link {
  display: block;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  transition: opacity 0.2s ease;
  border-radius: 24px;
  margin: 10px;
}
.bundle-link:hover {
  opacity: 0.9;
}

/* Main Layout with Sidebar */
.main-layout {
  display: flex;
  gap: 20px;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0;
}

.sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.sidebar.collapsed {
  width: 50px;
  overflow: hidden;
}

.sidebar.collapsed .sidebar-content {
  opacity: 0;
  pointer-events: none;
}

.sidebar.collapsed .sidebar-toggle {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 15px 8px;
}

.sidebar-toggle {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.sidebar-toggle:hover {
  background: linear-gradient(135deg, #252547 0%, #1e2a4a 100%);
}

.sidebar-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 0 0 12px 12px;
  padding: 16px;
  transition: opacity 0.3s ease;
}

.filter-section {
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 16px;
}

.filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  user-select: none;
}

.filter-header:hover {
  color: #a78bfa;
}

.toggle-icon {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.filter-header.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.filter-content {
  padding-top: 12px;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.filter-content.collapsed {
  max-height: 0 !important;
  opacity: 0;
  padding-top: 0;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.filter-row label {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.filter-row input[type="number"] {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 13px;
}

.filter-row input[type="number"]:focus {
  outline: none;
  border-color: #a78bfa;
}

.filter-row input[type="number"]::placeholder {
  color: rgba(255,255,255,0.4);
}

.filter-btn {
  width: 100%;
  padding: 10px 16px;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:not(.secondary) {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: #fff;
}

.filter-btn:not(.secondary):hover {
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
}

.filter-btn.secondary {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.filter-btn.secondary:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
#pinned-heroes { order: 1; }
#heroes-filtered { order: 2; }
.main-actions { order: 3; }
#bundles-results { order: 4; }

/* Sidebar filter lists */
.sidebar .rarity,
.sidebar .role,
.sidebar .faction,
.sidebar .element,
.sidebar .buff,
.sidebar .debuff {
  font-size: 12px;
  padding: 6px 12px;
  /* height: auto; */
  margin: 0 6px 6px 0;
}

.sidebar h4 {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin: 12px 0 8px;
  font-weight: 500;
}

.sidebar h4:first-child {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 1200px) {
  .sidebar {
    width: 280px;
  }
}

@media (max-width: 992px) {
  .main-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    position: static;
    max-height: none;
  }
  .sidebar.collapsed {
    width: 100%;
  }
  .sidebar.collapsed .sidebar-toggle {
    writing-mode: horizontal-tb;
  }
}

/* Hero count badge */
.bundle-hero .hero-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.hero-count-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  margin-left: auto;
  border-radius: 12px;
  border: 1.5px solid currentColor;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Right floating panel */
.right-panel {
  width: 385px;
  flex-shrink: 0;
  position: fixed;
  top: 110px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  right: 10px;
}

.right-panel .box {
  background: linear-gradient(135deg, #2a2a4a 0%, #1a1a2e 100%);
  border-radius: 12px;
  padding: 16px;
}

.right-panel h3 {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 10px;
  font-weight: 500;
}

.right-panel #buffs-chosed,
.right-panel #debuffs-chosed {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.right-panel #chosed-debuffs {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 1400px) {
  .right-panel {
    display: none;
  }
}

/* Copy ID effect */
.bundle-id {
  cursor: pointer;
  transition: color 0.2s ease;
}

.bundle-id:hover {
  color: #a78bfa;
}

.bundle-id.copied {
  color: #22c55e;
}

.bundle-id.copied::after {
  content: ' ✓';
}

/* Faction icons */
.faction-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-right: 0;
  vertical-align: middle;
}

.sidebar .faction {
  display: inline-flex;
  align-items: flex-start;
  background: transparent;
  width: 60px;
  height: 50px;
  margin-right: 10px;
}

/* Element icons */
.element-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
}

.element-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 0px 5px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.selected .element-count {
  background:#1957a3;
}

.sidebar .element {
  padding: 4px;
  display: inline-flex;
  align-items: flex-start;
  background: transparent;
  width: 60px;
  height: 50px;
  margin-right: 10px;
}

.sidebar .element:hover {
  border-radius: 8px;
}

.sidebar .element.selected {
  border-radius: 8px;
}

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Semantic elements reset */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

legend {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin: 12px 0 8px;
  font-weight: 500;
  padding: 0;
}

fieldset:first-of-type legend {
  margin-top: 0;
}

/* Header */
.site-header {
  text-align: center;
  padding: 15px 0 0;
}

.site-header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Dialog */
dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px;
}

/* Main actions footer */
.main-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Hidden attribute support */
[hidden] {
  display: none !important;
}

/* Hero Card - Semantic Structure */
.hero-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  padding: 0 0 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #fff;
  position: relative;
}

.hero-card:hover,
.hero-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  outline: none;
}

.hero-card:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

.hero-card.pinned {
  border: 2px solid #a78bfa;
}

.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-avatar {
  margin: 0;
  flex-shrink: 0;
  order: 0;
}

.hero-avatar img {
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.hero-name {
  font-size: 13px;
  font-weight: normal;
  margin: 0;
  line-height: 1.2;
  width: 100%;
  text-align: center;
}

#pinned-heroes-list .hero-name,
.hero-card .hero-name{
    order: -1;
    padding-bottom: 10px;
    /* display: flex; */
    /* justify-content: space-between; */
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* Hero count control for pinned heroes */
.hero-count-control {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  padding: 2px 6px;
  margin-top: 4px;
  top: 100px;
  left: 10px;
}
.count-btn {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
}
.count-btn:hover {
  background: rgba(255,255,255,0.3);
}
.count-value {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}

/* Definition List for stats */
.hero-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 13px;
  margin: 0 0 12px;
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.hero-stats dt {
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

.hero-stats dd {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.faction-icon-small {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin: 0;
  position: absolute;
  top: 48px;
  right: 75px;
}

/* Hero effects section */
.hero-effects {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px;
}

.hero-effects h4 {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 0 0 6px;
  font-weight: 500;
}

.hero-effects ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hero-effects li.empty {
  color: rgba(255,255,255,0.3);
  font-size: 12px;
}

/* Backward compatibility */
.selected-hero {
  composes: hero-card;
}

/* Rarity border colors for hero avatars */
.hero-card[data-rarity="мифические"] .hero-avatar img,
.rarity-мифические .hero-avatar img {
  border-color: #ff6b6b;
  box-shadow: 0 0 12px rgba(255, 107, 107, 0.5);
}

.hero-card[data-rarity="легендарные"] .hero-avatar img,
.rarity-легендарные .hero-avatar img {
  border-color: #ffd93d;
  box-shadow: 0 0 10px rgba(255, 217, 61, 0.4);
}

.hero-card[data-rarity="эпические"] .hero-avatar img,
.rarity-эпические .hero-avatar img {
  border-color: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.hero-card[data-rarity="редкие"] .hero-avatar img,
.rarity-редкие .hero-avatar img {
  border-color: #3b82f6;
}

.hero-card[data-rarity="необычные"] .hero-avatar img,
.rarity-необычные .hero-avatar img {
  border-color: #22c55e;
}

/* Faction count badge */
.faction {
  position: relative;
}

.faction-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  padding: 0;
}

.faction.selected .faction-count {
  background: #1957a3;
}


/* Toast notification */
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Language Switcher */
.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  position: fixed;
  left: 0;
  top: 0;
}

.lang-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
  width: 50px;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.lang-btn.active {
  background: #1957a3;
  border-color: #1957a3;
  color: #fff;
}

/* Book Button */
.book-btn {
  width: 100%;
  margin-top: 8px;
  padding: 8px 16px;
  background: #43a047;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.book-btn:hover {
  background: #388e3c;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.modal-content h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 20px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin-bottom: 4px;
}

.form-row input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

.form-row input:focus {
  outline: none;
  border-color: #1957a3;
}

.form-row input[readonly] {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-primary {
  flex: 1;
  padding: 12px;
  background: #43a047;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.btn-primary:hover {
  background: #388e3c;
}

.btn-primary:disabled {
  background: #666;
  cursor: not-allowed;
}

.btn-secondary {
  flex: 1;
  padding: 12px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Meta-filters group - special filters like "6+ бафов", "4+ дебафов" */
.meta-filters-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.meta-filters-group .buff,
.meta-filters-group .debuff {
  width: auto;
  padding: 0 14px;
  text-indent: 0;
  background-image: none !important;
  background-color: #2a4a6a;
  font-size: 13px;
  height: 28px;
}

.meta-filters-group .buff:hover,
.meta-filters-group .debuff:hover {
  background-color: #3a5a7a;
}

.meta-filters-group .buff.highlighted,
.meta-filters-group .debuff.highlighted {
  background-color: #024076;
}

/* Effect with hero names in right panel */
#buffs-chosed .buff,
#debuffs-chosed .debuff {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  height: auto;
  min-height: 32px;
  padding: 4px 8px;
  margin: 0 0 6px 0;
  text-indent: 0;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

/* Effect icons inherit background from parent buff/debuff class */
#buffs-chosed .buff,
#debuffs-chosed .debuff {
  background-position: 8px center;
  background-size: 24px 24px;
  background-repeat: no-repeat;
  padding-left: 60px !important;
}

#buffs-chosed .buff .effect-heroes,
#debuffs-chosed .debuff .effect-heroes {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
  word-break: break-word;
}

#buffs-chosed,
#debuffs-chosed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Chimera results - heroes with their effects */
.chimera-heroes-effects {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}

.chimera-hero-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.chimera-hero-card .hero-info {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 140px;
}

.chimera-hero-card .hero-info img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.chimera-hero-card .hero-name {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-align: left;
}

.chimera-hero-card .hero-effects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hero-effect-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  background: rgba(67, 160, 71, 0.3);
  color: #8bc34a;
  border-radius: 4px;
}

.chimera-missing {
  margin-top: 8px;
  padding: 8px;
  background: rgba(244, 67, 54, 0.1);
  border-radius: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.chimera-missing .effect-tag.missing {
  display: inline-block;
  padding: 2px 6px;
  margin: 2px;
  font-size: 11px;
  background: rgba(244, 67, 54, 0.2);
  color: #ef5350;
  border-radius: 4px;
}

/* Chimera coverage panel in right sidebar */
.chimera-coverage-panel {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chimera-coverage-panel h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.chimera-coverage-panel .no-coverage {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-style: italic;
}

.chimera-form-coverage {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.chimera-form-coverage .form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chimera-form-coverage .form-name {
  font-size: 13px;
  font-weight: 500;
}

.chimera-form-coverage .form-coverage {
  font-size: 14px;
  font-weight: 600;
}

.chimera-form-coverage.passed {
  background: rgba(67, 160, 71, 0.2);
  border-left: 3px solid #43a047;
}

.chimera-form-coverage.passed .form-coverage {
  color: #8bc34a;
}

.chimera-form-coverage.high .form-coverage {
  color: #8bc34a;
}

.chimera-form-coverage.medium .form-coverage {
  color: #ffc107;
}

.chimera-form-coverage.low .form-coverage {
  color: #ef5350;
}

.chimera-form-coverage.locked {
  opacity: 0.5;
  background: rgba(0, 0, 0, 0.3);
}

.chimera-form-coverage.locked .form-coverage {
  color: #888;
}

.chimera-form-missing {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.chimera-form-missing .missing-effect {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(244, 67, 54, 0.15);
  color: #ef9a9a;
  border-radius: 4px;
}

/* Bundle card actions */
.bundle-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.bundle-actions .book-btn {
  flex: 1;
}

.select-team-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.2s ease;
  width: auto;
  height: auto;
}

.select-team-btn:hover {
  background: linear-gradient(135deg, #5b4cdb 0%, #8c7ae6 100%);
  transform: translateY(-1px);
}

.select-team-btn svg {
  flex-shrink: 0;
}

/* Pinned heroes header with clear button */
.pinned-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pinned-header h2 {
  margin: 0;
}

.clear-pinned-btn {
  padding: 6px 12px;
  background: rgba(244, 67, 54, 0.2);
  color: #ef5350;
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
  width: auto;
  height: auto;
}

.clear-pinned-btn:hover {
  background: rgba(244, 67, 54, 0.3);
  border-color: #ef5350;
}

/* Hero search with autocomplete */
.hero-search-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.hero-search-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

.hero-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hero-search-input:focus {
  outline: none;
  border-color: #6c5ce7;
  background: rgba(0, 0, 0, 0.4);
}

.hero-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-result-item:hover {
  background: rgba(108, 92, 231, 0.2);
}

.search-result-item.pinned {
  background: rgba(67, 160, 71, 0.15);
}

.search-result-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.search-result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.search-result-name {
  font-size: 14px;
  color: #fff;
}

.search-result-secondary {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.pinned-badge {
  color: #8bc34a;
  font-size: 16px;
}

.search-no-results {
  padding: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}
