/* ===================================================================
   MORDHEIM - EQUIPMENT & GOLD MANAGEMENT CSS
   Styling für Equipment-Editor und Gold-Transaktionen
   Version 2.0 - Integrated with Modal System
   =================================================================== */

/* ===================================================================
   EQUIPMENT IN HERO CARDS
   =================================================================== */

.equipment-field {
  position: relative;
}

.equipment-field label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edit-equipment-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9em;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.edit-equipment-btn:hover {
  opacity: 1;
  background: rgba(201, 169, 89, 0.2);
  transform: scale(1.1);
}

.equipment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  padding: 4px 0;
}

.equipment-list.empty {
  opacity: 0.5;
}

.equipment-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(201, 169, 89, 0.15);
  border: 1px solid rgba(201, 169, 89, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.equipment-item:hover {
  background: rgba(201, 169, 89, 0.3);
  border-color: var(--color-gold, #c9a959);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.equipment-item .item-price {
  font-size: 0.75em;
  color: var(--color-gold, #c9a959);
  opacity: 0.8;
}

.no-equipment {
  color: #666;
  font-style: italic;
  font-size: 0.85em;
}

/* ===================================================================
   EQUIPMENT EDITOR CONTENT
   =================================================================== */

.equipment-editor {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.equipment-editor-header {
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 169, 89, 0.3);
}

.equipment-editor-header h4 {
  margin: 0;
  color: var(--color-gold, #c9a959);
}

.equipment-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.equipment-section > label {
  font-weight: 600;
  color: var(--color-gold, #c9a959);
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.equipment-section > label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 169, 89, 0.3), transparent);
}

.current-equipment {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.equipment-editor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.equipment-editor-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.equipment-editor-item .item-name {
  flex: 1;
  font-weight: 500;
}

.equipment-editor-item .item-sell-price {
  color: var(--color-gold, #c9a959);
  font-size: 0.85em;
  margin-right: 12px;
  font-weight: 600;
}

.equipment-editor-item .item-actions {
  display: flex;
  gap: 6px;
}

/* ===================================================================
   EQUIPMENT SHOP (Warband Equipment List)
   =================================================================== */

.equipment-shop {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 16px;
}

.equipment-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(201, 169, 89, 0.1);
  border: 1px solid rgba(201, 169, 89, 0.2);
  border-radius: 8px;
}

.equipment-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9em;
  user-select: none;
}

.equipment-filter input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-gold, #c9a959);
}

.equipment-filter .gold-display {
  color: var(--color-gold, #c9a959);
  font-weight: 700;
  font-size: 1.1em;
}

.equipment-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 8px;
}

.equipment-category {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-header {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.2) 0%, rgba(201, 169, 89, 0.1) 100%);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.85em;
  color: var(--color-gold, #c9a959);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  padding: 12px;
}

.shop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 169, 89, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-item:hover:not(.too-expensive) {
  background: rgba(201, 169, 89, 0.2);
  border-color: var(--color-gold, #c9a959);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.shop-item:active:not(.too-expensive) {
  transform: translateY(0);
}

.shop-item.too-expensive {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
}

.shop-item .item-name {
  font-size: 0.9em;
  font-weight: 500;
}

.shop-item .item-cost {
  font-size: 0.85em;
  color: var(--color-gold, #c9a959);
  font-weight: 700;
  white-space: nowrap;
  margin-left: 8px;
}

.shop-item .item-cost.unaffordable {
  color: #ef5350;
}

/* ===================================================================
   STASH ASSIGN LIST
   =================================================================== */

.stash-assign-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.stash-assign-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stash-assign-item:hover {
  background: rgba(76, 175, 80, 0.2);
  border-color: #4caf50;
  transform: translateX(4px);
}

.stash-assign-item .assign-hint {
  color: #81c784;
  font-size: 0.85em;
  font-weight: 600;
}

/* ===================================================================
   COLLAPSIBLE MANUAL SECTION
   =================================================================== */

.equipment-section.collapsible {
  border: 1px solid rgba(201, 169, 89, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.equipment-section.collapsible > label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.2s ease;
  margin: 0;
}

.equipment-section.collapsible > label::after {
  display: none;
}

.equipment-section.collapsible > label:hover {
  background: rgba(255, 255, 255, 0.06);
}

.equipment-section.collapsible .expand-icon {
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.equipment-section.collapsible.expanded .expand-icon {
  transform: rotate(90deg);
}

.equipment-section.collapsible .collapsible-content {
  display: none;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.equipment-section.collapsible.expanded .collapsible-content {
  display: block;
  animation: staggerFadeIn 0.3s ease;
}

.manual-add-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.manual-add-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 0.95em;
}

.manual-add-row input:focus {
  outline: none;
  border-color: var(--color-gold, #c9a959);
}

.equipment-section textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  resize: vertical;
  font-family: inherit;
  font-size: 0.95em;
  margin-bottom: 10px;
}

.equipment-section textarea:focus {
  outline: none;
  border-color: var(--color-gold, #c9a959);
}

.empty-hint {
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 16px;
}

/* ===================================================================
   GOLD MANAGEMENT
   =================================================================== */

.gold-field-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gold-field-row input {
  flex: 1;
}

.gold-log-btn {
  background: rgba(201, 169, 89, 0.2);
  border: 1px solid rgba(201, 169, 89, 0.4);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gold-log-btn:hover {
  background: rgba(201, 169, 89, 0.3);
  transform: scale(1.05);
}

/* Gold Transaction Modal Content */
.gold-transaction-modal {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gold-current {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.2), rgba(201, 169, 89, 0.1));
  border-radius: 12px;
  border: 2px solid rgba(201, 169, 89, 0.4);
}

.gold-current .gold-icon {
  font-size: 2.5em;
}

.gold-current .gold-amount {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--color-gold, #c9a959);
  font-family: var(--font-display, 'Cinzel', serif);
  transition: all 0.3s ease;
}

.gold-current .gold-amount.flash {
  transform: scale(1.2);
  color: #fff;
  text-shadow: 0 0 20px var(--color-gold, #c9a959);
}

.gold-quick-actions h4,
.gold-custom h4 {
  margin: 0 0 14px 0;
  color: var(--color-gold, #c9a959);
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gold-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.gold-btn {
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 60px;
}

.gold-btn.minus {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 2px solid rgba(244, 67, 54, 0.4);
}

.gold-btn.minus:hover {
  background: rgba(244, 67, 54, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.gold-btn.plus {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 2px solid rgba(76, 175, 80, 0.4);
}

.gold-btn.plus:hover {
  background: rgba(76, 175, 80, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.gold-custom-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.gold-custom-row input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1em;
}

.gold-custom-row input[type="number"] {
  width: 100px;
  flex: none;
  text-align: center;
  font-weight: 700;
  font-size: 1.1em;
}

.gold-custom-buttons {
  display: flex;
  gap: 12px;
}

/* Gold Log Modal Content */
.gold-log-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gold-log-header {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 169, 89, 0.3);
}

.gold-log-header .gold-total {
  font-size: 1.3em;
}

.gold-log-header .gold-total strong {
  color: var(--color-gold, #c9a959);
  font-size: 1.2em;
}

.gold-log-list {
  max-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gold-log-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
}

.gold-log-entry:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gold-log-entry.income {
  border-left-color: #4caf50;
}

.gold-log-entry.expense {
  border-left-color: #f44336;
}

.gold-log-entry .log-date {
  font-size: 0.8em;
  color: #888;
  min-width: 50px;
}

.gold-log-entry .log-desc {
  flex: 1;
  font-size: 0.9em;
}

.gold-log-entry .log-amount {
  font-weight: 700;
  font-size: 1em;
}

.gold-log-entry.income .log-amount {
  color: #81c784;
}

.gold-log-entry.expense .log-amount {
  color: #ef9a9a;
}

.empty-log {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 30px;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 768px) {
  .gold-buttons {
    flex-wrap: wrap;
  }
  
  .gold-btn {
    flex: 1;
    min-width: 50px;
  }
  
  .gold-custom-row {
    flex-direction: column;
  }
  
  .gold-custom-row input[type="number"] {
    width: 100%;
  }
  
  .gold-custom-buttons {
    flex-direction: column;
  }
  
  .equipment-editor-item {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .equipment-editor-item .item-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .equipment-categories {
    max-height: 280px;
  }
  
  .category-items {
    grid-template-columns: 1fr;
  }
  
  .manual-add-row {
    flex-direction: column;
  }
}

/* ===================================================================
   ITEM OPTIONS MODAL
   =================================================================== */

.item-options-modal {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.item-options-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(201, 169, 89, 0.3);
}

.item-options-header .item-icon {
  font-size: 1.5em;
}

.item-options-header .item-title {
  font-size: 1.2em;
  font-weight: 600;
  flex: 1;
}

.item-options-header .item-sell-value {
  color: var(--color-gold, #c9a959);
  font-size: 0.9em;
}

.item-options-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.btn-option:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.btn-option .option-icon {
  font-size: 1.2em;
}

.btn-option .option-text {
  flex: 1;
}

.btn-option.btn-sell {
  background: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.4);
}

.btn-option.btn-sell:hover {
  background: rgba(76, 175, 80, 0.25);
}

.btn-option.btn-danger {
  background: rgba(244, 67, 54, 0.15);
  border-color: rgba(244, 67, 54, 0.4);
}

.btn-option.btn-danger:hover {
  background: rgba(244, 67, 54, 0.25);
}

/* ===================================================================
   GOLD MANAGEMENT
   =================================================================== */

.gold-field-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gold-field-row input {
  flex: 1;
}

.gold-log-btn {
  background: rgba(201, 169, 89, 0.2);
  border: 1px solid rgba(201, 169, 89, 0.4);
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gold-log-btn:hover {
  background: rgba(201, 169, 89, 0.3);
}

.wb-action-btn.gold-btn {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.3), rgba(201, 169, 89, 0.1));
  border-color: rgba(201, 169, 89, 0.5);
}

.wb-action-btn.gold-btn:hover {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.4), rgba(201, 169, 89, 0.2));
}

/* Gold Transaction Modal */
.gold-transaction-modal {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gold-current {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.2), rgba(201, 169, 89, 0.1));
  border-radius: 10px;
  border: 1px solid rgba(201, 169, 89, 0.4);
}

.gold-current .gold-icon {
  font-size: 2em;
}

.gold-current .gold-amount {
  font-size: 2em;
  font-weight: 700;
  color: var(--color-gold, #c9a959);
  transition: all 0.3s ease;
}

.gold-current .gold-amount.flash {
  transform: scale(1.2);
  color: #fff;
}

.gold-quick-actions h4,
.gold-custom h4 {
  margin: 0 0 12px 0;
  color: var(--color-gold, #c9a959);
  font-size: 0.95em;
}

.gold-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.gold-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gold-btn.minus {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.4);
}

.gold-btn.minus:hover {
  background: rgba(244, 67, 54, 0.3);
  transform: translateY(-2px);
}

.gold-btn.plus {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.gold-btn.plus:hover {
  background: rgba(76, 175, 80, 0.3);
  transform: translateY(-2px);
}

.gold-custom-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.gold-custom-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1em;
}

.gold-custom-row input[type="number"] {
  width: 100px;
  flex: none;
  text-align: center;
}

.gold-custom-buttons {
  display: flex;
  gap: 10px;
}

.gold-custom-buttons .btn {
  flex: 1;
  padding: 12px;
  font-size: 1em;
}

/* Gold Log Modal */
.gold-log-modal {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.gold-log-header {
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 169, 89, 0.3);
}

.gold-log-header .gold-total {
  font-size: 1.2em;
}

.gold-log-header .gold-total strong {
  color: var(--color-gold, #c9a959);
}

.gold-log-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gold-log-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border-left: 3px solid transparent;
}

.gold-log-entry.income {
  border-left-color: #4caf50;
}

.gold-log-entry.expense {
  border-left-color: #f44336;
}

.gold-log-entry .log-date {
  font-size: 0.8em;
  color: #888;
  min-width: 45px;
}

.gold-log-entry .log-desc {
  flex: 1;
  font-size: 0.9em;
}

.gold-log-entry .log-amount {
  font-weight: 600;
  font-size: 0.95em;
}

.gold-log-entry.income .log-amount {
  color: #4caf50;
}

.gold-log-entry.expense .log-amount {
  color: #f44336;
}

.empty-log {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
}

.log-truncated {
  text-align: center;
  color: #888;
  font-size: 0.85em;
  padding-top: 10px;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 768px) {
  .gold-buttons {
    flex-wrap: wrap;
  }
  
  .gold-btn {
    flex: 1;
    min-width: 50px;
  }
  
  .gold-custom-row {
    flex-direction: column;
  }
  
  .gold-custom-row input[type="number"] {
    width: 100%;
  }
  
  .gold-custom-buttons {
    flex-direction: column;
  }
  
  .equipment-editor-item {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .equipment-editor-item .item-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ===================================================================
   EQUIPMENT SHOP (Warband Equipment List)
   =================================================================== */

.equipment-shop {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 12px;
}

.equipment-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(201, 169, 89, 0.1);
  border-radius: 6px;
}

.equipment-filter label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.9em;
}

.equipment-filter .gold-display {
  color: var(--color-gold, #c9a959);
  font-weight: 600;
}

.equipment-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.equipment-category {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  overflow: hidden;
}

.category-header {
  background: rgba(201, 169, 89, 0.15);
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.85em;
  color: var(--color-gold, #c9a959);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px;
  padding: 8px;
}

.shop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 169, 89, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-item:hover:not(.too-expensive) {
  background: rgba(201, 169, 89, 0.2);
  border-color: var(--color-gold, #c9a959);
  transform: translateY(-1px);
}

.shop-item.too-expensive {
  opacity: 0.4;
  cursor: not-allowed;
}

.shop-item .item-name {
  font-size: 0.9em;
}

.shop-item .item-cost {
  font-size: 0.8em;
  color: var(--color-gold, #c9a959);
  font-weight: 600;
  white-space: nowrap;
}

.shop-item .item-cost.unaffordable {
  color: #cc6666;
}

/* Collapsible Manual Section */
.equipment-section.collapsible {
  border: 1px solid rgba(201, 169, 89, 0.2);
  border-radius: 6px;
  overflow: hidden;
}

.equipment-section.collapsible > label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.2s ease;
}

.equipment-section.collapsible > label:hover {
  background: rgba(255, 255, 255, 0.05);
}

.equipment-section.collapsible .expand-icon {
  transition: transform 0.2s ease;
}

.equipment-section.collapsible.expanded .expand-icon {
  transform: rotate(90deg);
}

.equipment-section.collapsible .collapsible-content {
  display: none;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.equipment-section.collapsible.expanded .collapsible-content {
  display: block;
}

/* ===================================================================
   HERO/HENCHMEN CARD - Skills/Injuries Box Konsistenz
   =================================================================== */

.field[class*="skills"],
.skills-injuries-field {
  min-height: 60px;
}

.field-val.empty,
.skills-injuries-box:empty::before {
  content: '—';
  color: #666;
  font-style: italic;
}

/* Konsistente Kartenhöhen */
.hero-card .card-body,
.henchman-card .card-body {
  display: flex;
  flex-direction: column;
}

.hero-card .field,
.henchman-card .field {
  flex-shrink: 0;
}

/* Skills/Injuries Box mit fester Mindesthöhe */
.hero-card .field:has(.skills-injuries),
.hero-card [class*="skills"],
.hero-card [class*="injuries"] {
  min-height: 50px;
}

@media (max-width: 768px) {
  .equipment-categories {
    max-height: 250px;
  }
  
  .category-items {
    grid-template-columns: 1fr;
  }
}
