/* ── Tier groups ── */
.tier-group { margin-bottom: 12px; }

.tier-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 4px;
  border: 2px solid transparent;
}
.tier-header:hover  { background: var(--surface2); }
.tier-header.active { border-color: var(--accent); background: rgba(0,255,136,0.05); }

.tier-header .tier-swatch {
  width: 24px; height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.tier-header .tier-info  { flex: 1; min-width: 0; }
.tier-header .tier-name  { font-size: 12px; font-weight: 700; margin-bottom: 1px; }
.tier-header .tier-price { font-size: 11px; color: var(--text-dim); }

/* ── Color picker panels ── */
.standard-picker {
  display: none;
  margin-top: 6px;
  padding: 10px;
  background: var(--surface2);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.standard-picker.open { display: block; }

.color-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 22px);
  gap: 5px;
}

.color-chip {
  width: 22px; height: 22px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.12s;
  flex-shrink: 0;
}
.color-chip:hover    { transform: scale(1.2); z-index: 2; }
.color-chip.selected { border-color: white; box-shadow: 0 0 0 1px rgba(255,255,255,0.5); transform: scale(1.15); }

/* ── Metallic chips ── */
.metallic-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding-bottom: 4px;
}

.metallic-chip {
  height: 28px;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.12s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 3px;
}
.metallic-chip:hover    { transform: scale(1.06); z-index: 2; }
.metallic-chip.selected { border-color: white; box-shadow: 0 0 0 1px rgba(255,255,255,0.4); }
.metallic-chip span {
  font-size: 8px;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  letter-spacing: 0.3px;
  pointer-events: none;
}

/* ── Legendary picker ── */
.legendary-picker {
  display: none;
  margin-top: 8px;
  padding: 10px;
  background: var(--surface2);
  border-radius: 8px;
  border: 1px solid #7733ff44;
}
.legendary-picker.open { display: block; }
.legendary-picker input[type=color] {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 6px;
  background: none;
  cursor: pointer;
  padding: 0;
}
.legendary-picker-label {
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 1px;
}
